diff --git a/src/snek/service/notification.py b/src/snek/service/notification.py index fa3cdc3..911aa94 100644 --- a/src/snek/service/notification.py +++ b/src/snek/service/notification.py @@ -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):