core: home_domain: only show joined

This commit is contained in:
undefined committed 2025-03-20 17:55:10 +00:00
1 parent 24f61b8b27
commit 2a04921de2
3 files changed
+20 -23

No files matched your search

+1 -1
View File
@@ -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;