UBERF-7016: Hide channels without any activity long time (#6176)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-07-30 12:53:24 +07:00
committed by GitHub
parent 1340ca78a9
commit 416eb9942e
28 changed files with 743 additions and 346 deletions
@@ -14,7 +14,6 @@ export async function createNotification (
const docNotifyContextId = await client.createDoc(notification.class.DocNotifyContext, forDoc.space, {
attachedTo: forDoc._id,
attachedToClass: forDoc._class,
hidden: false,
user: data.user,
isPinned: false
})
@@ -29,9 +28,6 @@ export async function createNotification (
props: data.props
})
if (existing !== undefined) {
await client.update(docNotifyContext as DocNotifyContext, {
lastUpdateTimestamp: Date.now()
})
await client.update(existing, {
isViewed: false
})