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

Method updateGroup

packages/hydrooj/src/model/user.ts:506–509  ·  view source on GitHub ↗
(domainId: string, name: string, uids: number[])

Source from the content-addressed store, hash-verified

504 }
505
506 static updateGroup(domainId: string, name: string, uids: number[]) {
507 deleteUserCache(domainId);
508 return collGroup.updateOne({ domainId, name }, { $set: { uids } }, { upsert: true });
509 }
510}
511
512export async function apply() {

Callers 5

runFunction · 0.80
postUpdateMethod · 0.80
postMethod · 0.80
domain.tsFile · 0.80
postMethod · 0.80

Calls 1

deleteUserCacheFunction · 0.85

Tested by

no test coverage detected