Skip to content

Commit b39ca4b

Browse files
committed
store: Fix logic error in SubgraphStore.remove_deployment
The error was introduced in commit 1e1aca8 (PR #3094)
1 parent 844cff6 commit b39ca4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/postgres/src/subgraph_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ impl SubgraphStoreInner {
767767
let store = self.for_site(site.as_ref())?;
768768

769769
// Check that deployment is not assigned
770-
let mut removable = self.mirror.assigned_node(site.as_ref())?.is_some();
770+
let mut removable = self.mirror.assigned_node(site.as_ref())?.is_none();
771771

772772
// Check that it is not current/pending for any subgraph if it is
773773
// the active deployment of that subgraph

0 commit comments

Comments
 (0)