aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-20 18:35:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-20 18:35:19 -0700
commitdd9598577da8dfccaf0bb6daff56bab9d1d8e9a6 (patch)
tree110c0e966f6adee51efb1b645c0125fe7580293d /rust/src
parentad7363b3a6dd9e595250698ce78177ebdeb12cd2 (diff)
downloadfatcat-dd9598577da8dfccaf0bb6daff56bab9d1d8e9a6.tar.gz
fatcat-dd9598577da8dfccaf0bb6daff56bab9d1d8e9a6.zip
actually check withdrawn status
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/entity_crud.rs3
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(