(row: CommentRow)
| 291 | } |
| 292 | |
| 293 | function toCommentDto(row: CommentRow): CommentDto { |
| 294 | return { |
| 295 | id: row.id, |
| 296 | body: row.body, |
| 297 | authorId: row.authorId, |
| 298 | createdAt: row.createdAt.toISOString(), |
| 299 | updatedAt: row.updatedAt.toISOString(), |
| 300 | }; |
| 301 | } |