fix: prevent filtering by linked_character_id: None when character_id is None in generation queries.

This commit is contained in:
xds
2026-02-07 15:07:41 +03:00
parent 305ad24576
commit aa50b1cc03

View File

@@ -29,8 +29,6 @@ class GenerationRepo:
args = {} args = {}
if character_id is not None: if character_id is not None:
args["linked_character_id"] = character_id args["linked_character_id"] = character_id
else:
args["linked_character_id"] = None
if status is not None: if status is not None:
args["status"] = status args["status"] = status
res = await self.collection.find(args).sort("created_at", -1).skip( res = await self.collection.find(args).sort("created_at", -1).skip(