(uid: number)
| 62 | } |
| 63 | |
| 64 | static getMulti(uid: number) { |
| 65 | return MessageModel.coll.find({ $or: [{ from: uid }, { to: uid }] }); |
| 66 | } |
| 67 | |
| 68 | static async sendNotification(message: string, ...args: any[]) { |
| 69 | const targets = await user.getMulti({ priv: { $bitsAllSet: PRIV.PRIV_VIEW_SYSTEM_NOTIFICATION } }) |