( opts: SessionChatStoreOptions, designId: string, event: StoredCommentEvent, )
| 375 | } |
| 376 | |
| 377 | function appendCommentEvent( |
| 378 | opts: SessionChatStoreOptions, |
| 379 | designId: string, |
| 380 | event: StoredCommentEvent, |
| 381 | ): void { |
| 382 | const manager = openSession(opts, designId); |
| 383 | const entryId = manager.appendCustomEntry(COMMENT_CUSTOM_TYPE, event); |
| 384 | const entry = manager.getEntry(entryId); |
| 385 | flushSession(manager); |
| 386 | const createdAt = entry?.timestamp ?? new Date().toISOString(); |
| 387 | touchDesignActivity(opts.db, designId, createdAt); |
| 388 | } |
| 389 | |
| 390 | export function appendSessionComment( |
| 391 | opts: SessionChatStoreOptions, |
no test coverage detected