From a4ab7721386f2b3a49cf9dfd0e680fee15a3f693 Mon Sep 17 00:00:00 2001 From: retoor Date: Mon, 18 Aug 2025 23:22:26 +0200 Subject: [PATCH] Updated. --- src/snek/service/notification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):