From b2cb78c023670d61e915db1d3341e808940a2197 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 21 Dec 2018 16:37:45 -0800 Subject: don't expand deleted entities --- rust/src/api_entity_crud.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/src') diff --git a/rust/src/api_entity_crud.rs b/rust/src/api_entity_crud.rs index eb7a3ac9..6474ba6f 100644 --- a/rust/src/api_entity_crud.rs +++ b/rust/src/api_entity_crud.rs @@ -1014,6 +1014,10 @@ impl EntityCrud for ReleaseEntity { } fn db_expand(&mut self, conn: &DbConn, expand: ExpandFlags) -> Result<()> { + // Don't expand deleted entities + if self.state == Some("deleted".to_string()) { + return Ok(()) + } if expand.files { let ident = match &self.ident { None => bail!("Can't expand files on a non-concrete entity"), -- cgit v1.2.3