MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / getMulti

Method getMulti

packages/hydrooj/src/model/message.ts:64–66  ·  view source on GitHub ↗
(uid: number)

Source from the content-addressed store, hash-verified

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 } })

Callers 1

sendNotificationMethod · 0.45

Calls 1

findMethod · 0.80

Tested by

no test coverage detected