mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: del user cache on group update (#552)
This commit is contained in:
1 parent
5a06be3208
commit
342e9585dd
2 files changed
+13
-11
No files matched your search
@@ -441,10 +441,12 @@ class UserModel {
|
||||
}
|
||||
|
||||
static delGroup(domainId: string, name: string) {
|
||||
deleteUserCache(domainId);
|
||||
return collGroup.deleteOne({ domainId, name });
|
||||
}
|
||||
|
||||
static updateGroup(domainId: string, name: string, uids: number[]) {
|
||||
deleteUserCache(domainId);
|
||||
return collGroup.updateOne({ domainId, name }, { $set: { uids } }, { upsert: true });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user