Notifications accept.

This commit is contained in:
retoor 2025-03-05 18:24:32 +01:00
parent dd11c8da5a
commit 8f137cf8e6
2 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,6 @@ class NotificationService(BaseService):
if not channel_member['new_count']:
channel_member['new_count'] = 0
channel_member['new_count'] += 1
print("INSERTED!!",flush=True)
await self.services.channel_member.save(channel_member)
model = await self.new()

View File

@ -49,6 +49,7 @@ class BaseMapper:
if not model.record.get("uid"):
raise Exception(f"Attempt to save without uid: {model.record}.")
model.updated_at.update()
print(model.record,flush=True)
return self.table.upsert(model.record, ["uid"])
async def find(self, **kwargs) -> typing.AsyncGenerator: