huskies: merge 961
This commit is contained in:
@@ -55,7 +55,8 @@ pub async fn delete_work_item(
|
||||
// Pre-flight: check whether the item exists in any store before doing
|
||||
// destructive work. We probe the content store, CRDT, and filesystem
|
||||
// shadow dirs so we can return a clear "not found" when nothing matches.
|
||||
let found_in_content = crate::db::read_content(story_id).is_some();
|
||||
let found_in_content =
|
||||
crate::db::read_content(crate::db::ContentKey::Story(story_id)).is_some();
|
||||
let found_in_crdt = crate::pipeline_state::read_typed(story_id)
|
||||
.ok()
|
||||
.flatten()
|
||||
@@ -232,7 +233,7 @@ mod tests {
|
||||
|
||||
// Content store must be empty.
|
||||
assert!(
|
||||
crate::db::read_content(story_id).is_none(),
|
||||
crate::db::read_content(crate::db::ContentKey::Story(story_id)).is_none(),
|
||||
"content store must not contain the story after delete"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user