(thread: CommentThreadRow, comments: CommentRow[])
| 277 | } |
| 278 | |
| 279 | function toThreadDto(thread: CommentThreadRow, comments: CommentRow[]): CommentThreadDto { |
| 280 | return { |
| 281 | id: thread.id, |
| 282 | filePath: thread.filePath, |
| 283 | side: thread.side, |
| 284 | startLine: thread.startLine, |
| 285 | endLine: thread.endLine, |
| 286 | resolvedAt: thread.resolvedAt?.toISOString() ?? null, |
| 287 | createdAt: thread.createdAt.toISOString(), |
| 288 | updatedAt: thread.updatedAt.toISOString(), |
| 289 | comments: comments.map(toCommentDto), |
| 290 | }; |
| 291 | } |
| 292 | |
| 293 | function toCommentDto(row: CommentRow): CommentDto { |
| 294 | return { |
no outgoing calls
no test coverage detected