mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
core: home_domain: only show joined
This commit is contained in:
1 parent
24f61b8b27
commit
2a04921de2
3 files changed
+20
-23
No files matched your search
@@ -251,7 +251,7 @@ class DomainModel {
|
||||
|
||||
@ArgMethod
|
||||
static async getDictUserByDomainId(uid: number) {
|
||||
const dudocs = await collUser.find({ uid }).toArray();
|
||||
const dudocs = await collUser.find({ uid, join: true }).toArray();
|
||||
const dudict: Record<string, any> = {};
|
||||
for (const dudoc of dudocs) dudict[dudoc.domainId] = dudoc;
|
||||
return dudict;
|
||||
|
||||
Reference in new issue
Block a user