This commit is contained in:
retoor 2025-08-18 23:22:26 +02:00
parent 6f61fa323b
commit a4ab772138

View File

@ -16,8 +16,8 @@ class NotificationService(BaseService):
async def get_unread_stats(self, user_uid):
await self.query(
"SELECT object_type, COUNT(*) as count FROM notification WHERE user_uid=:user_uid AND read_at IS NULL GROUP BY object_type",
{"user_uid": user_uid},
"SELECT object_type, COUNT(*) as count FROM notification WHERE user_uid= ? AND read_at IS NULL GROUP BY object_type",
user_uid,
)
async def create(self, object_uid, object_type, user_uid, message):