Updated.
This commit is contained in:
parent
6f61fa323b
commit
a4ab772138
@ -16,8 +16,8 @@ class NotificationService(BaseService):
|
|||||||
|
|
||||||
async def get_unread_stats(self, user_uid):
|
async def get_unread_stats(self, user_uid):
|
||||||
await self.query(
|
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",
|
"SELECT object_type, COUNT(*) as count FROM notification WHERE user_uid= ? AND read_at IS NULL GROUP BY object_type",
|
||||||
{"user_uid": user_uid},
|
user_uid,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def create(self, object_uid, object_type, user_uid, message):
|
async def create(self, object_uid, object_type, user_uid, message):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user