mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 11:34:58 +02:00
UBER-174: Introduce createOn every there (#3222)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -144,7 +144,6 @@
|
||||
{
|
||||
content: message,
|
||||
createBy: me,
|
||||
createOn: Date.now(),
|
||||
attachments
|
||||
},
|
||||
commentId
|
||||
@@ -165,7 +164,7 @@
|
||||
if (docUpdate === undefined || lastView === undefined) return -1
|
||||
for (let index = 0; index < comments.length; index++) {
|
||||
const comment = comments[index]
|
||||
if (comment.createOn >= lastView) return index
|
||||
if ((comment.createOn ?? 0) >= lastView) return index
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user