({ userId, chatId, messageId })
| 170 | } |
| 171 | |
| 172 | public static async getListForThread({ userId, chatId, messageId }) { |
| 173 | await this.checkPermission({ userId, chatId }); |
| 174 | |
| 175 | const filter = { chatId, parentMessageId: messageId }; |
| 176 | |
| 177 | return this.find(filter).sort({ createdAt: 1, _id: 1 }).setOptions({ lean: true }); |
| 178 | } |
| 179 | |
| 180 | // done: add parentMessageId |
| 181 | public static async addOrEdit({ content, chatId, teamId, userId, id, files, parentMessageId }) { |
nothing calls this directly
no test coverage detected