Skip to content

Commit b6127ff

Browse files
Update state-manager/app/controller/prune_signal.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 4cc63fe commit b6127ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

state-manager/app/controller/prune_signal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async def prune_signal(namespace_name: str, state_id: PydanticObjectId, body: Pr
1313
try:
1414
logger.info(f"Received prune signal for state {state_id} for namespace {namespace_name}", x_exosphere_request_id=x_exosphere_request_id)
1515

16-
state = await State.find_one(State.id == state_id)
16+
state = await State.find_one(State.id == state_id, State.namespace_name == namespace_name)
1717

1818
if not state:
1919
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="State not found")

0 commit comments

Comments
 (0)