| 23 | }); |
| 24 | |
| 25 | interface IMessageDocument extends mongoose.Document { |
| 26 | chatId: string; |
| 27 | createdUserId: string; |
| 28 | content: string; |
| 29 | htmlContent: string; |
| 30 | isEdited: boolean; |
| 31 | createdAt: Date; |
| 32 | lastEditedAt: Date; |
| 33 | files: [ |
| 34 | { |
| 35 | fileName: string; |
| 36 | fileUrl: string; |
| 37 | addedAt: Date; |
| 38 | }, |
| 39 | ]; |
| 40 | parentMessageId: string; |
| 41 | } |
| 42 | |
| 43 | interface IMessageModel extends mongoose.Model<IMessageDocument> { |
| 44 | getList({ |
nothing calls this directly
no outgoing calls
no test coverage detected