mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-22 04:12:23 +02:00
UBERF-7016: Hide channels without any activity long time (#6176)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user