Bugfix.
This commit is contained in:
parent
5390b8bdc3
commit
877ef7970d
@ -41,6 +41,8 @@ class NotificationService(BaseService):
|
|||||||
channel_member['new_count'] += 1
|
channel_member['new_count'] += 1
|
||||||
|
|
||||||
usr = await self.services.user.get(uid=channel_member["user_uid"])
|
usr = await self.services.user.get(uid=channel_member["user_uid"])
|
||||||
|
if not usr:
|
||||||
|
continue
|
||||||
print("INSERTED FOR ",usr["username"],flush=True)
|
print("INSERTED FOR ",usr["username"],flush=True)
|
||||||
await self.services.channel_member.save(channel_member)
|
await self.services.channel_member.save(channel_member)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user