diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-20 18:35:19 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-20 18:35:19 -0700 |
commit | dd9598577da8dfccaf0bb6daff56bab9d1d8e9a6 (patch) | |
tree | 110c0e966f6adee51efb1b645c0125fe7580293d /rust | |
parent | ad7363b3a6dd9e595250698ce78177ebdeb12cd2 (diff) | |
download | fatcat-dd9598577da8dfccaf0bb6daff56bab9d1d8e9a6.tar.gz fatcat-dd9598577da8dfccaf0bb6daff56bab9d1d8e9a6.zip |
actually check withdrawn status
Diffstat (limited to 'rust')
-rw-r--r-- | rust/src/entity_crud.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs index dc8a3e82..58a92433 100644 --- a/rust/src/entity_crud.rs +++ b/rust/src/entity_crud.rs @@ -2026,6 +2026,9 @@ impl EntityCrud for ReleaseEntity { if let Some(ref release_stage) = entity.release_stage { check_release_stage(release_stage)?; } + if let Some(ref withdrawn_status) = entity.withdrawn_status { + check_withdrawn_status(withdrawn_status)?; + } if let Some(ref abstracts) = entity.abstracts { if abstracts.len() > 200 { return Err(FatcatError::BadRequest( |