(msg: { rids: string[] })
| 320 | } |
| 321 | |
| 322 | async message(msg: { rids: string[] }) { |
| 323 | if (!(msg.rids instanceof Array)) return; |
| 324 | const rids = msg.rids.map((id) => new ObjectId(id)); |
| 325 | const rdocs = await record.getMulti(this.args.domainId, { _id: { $in: rids } }) |
| 326 | .project<RecordDoc>(buildProjection(record.PROJECTION_LIST)).toArray(); |
| 327 | for (const rdoc of rdocs) this.onRecordChange(rdoc); |
| 328 | } |
| 329 | |
| 330 | @subscribe('record/change') |
| 331 | async onRecordChange(rdoc: RecordDoc) { |
nothing calls this directly
no test coverage detected