fix: skip notification insert for deleted user in channel member update

This commit is contained in:
2025-03-27 16:15:39 +00:00
parent 4397fed778
commit a6f3138f68
+2
View File
@@ -41,6 +41,8 @@ class NotificationService(BaseService):
channel_member['new_count'] += 1
usr = await self.services.user.get(uid=channel_member["user_uid"])
if not usr:
continue
print("INSERTED FOR ",usr["username"],flush=True)
await self.services.channel_member.save(channel_member)