({ userId, discussionId })
| 122 | |
| 123 | class CommentClass extends mongoose.Model { |
| 124 | public static async getList({ userId, discussionId }) { |
| 125 | await this.checkPermission({ userId, discussionId }); |
| 126 | |
| 127 | const filter = { discussionId }; |
| 128 | |
| 129 | return this.find(filter).sort({ createdAt: 1 }).setOptions({ lean: true }); |
| 130 | } |
| 131 | |
| 132 | // add arguments: teamId, socketId |
| 133 | public static async addOrEdit({ content, discussionId, teamId, userId, id, files }) { |
nothing calls this directly
no test coverage detected