(catid, status)
| 254 | } |
| 255 | |
| 256 | listByInterStatus(catid, status) { |
| 257 | let option = {}; |
| 258 | if (status === 'open') { |
| 259 | option = { |
| 260 | catid: catid, |
| 261 | api_opened: true |
| 262 | }; |
| 263 | } else { |
| 264 | option = { |
| 265 | catid: catid |
| 266 | }; |
| 267 | } |
| 268 | return this.model |
| 269 | .find(option) |
| 270 | .select() |
| 271 | .sort({ title: 1 }) |
| 272 | .exec(); |
| 273 | } |
| 274 | |
| 275 | del(id) { |
| 276 | return this.model.remove({ |
no outgoing calls
no test coverage detected