mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 09:35:00 +02:00
UBER-174: Introduce createOn every there (#3222)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -184,7 +184,7 @@ async function ThreadMessageDelete (tx: Tx, control: TriggerControl): Promise<Tx
|
||||
comment.attachedTo,
|
||||
{
|
||||
replies: comments.map((comm) => (control.modelDb.getObject(comm.createBy) as EmployeeAccount).employee),
|
||||
lastReply: comments.length > 0 ? Math.max(...comments.map((comm) => comm.createOn)) : undefined
|
||||
lastReply: comments.length > 0 ? Math.max(...comments.map((comm) => comm.createOn ?? comm.modifiedOn)) : undefined
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user