core: fix home_domain

This commit is contained in:
undefined committed 2021-05-12 00:00:51 +08:00
1 parent 808cb5d4a5
commit 41f6149359
1 file changed
+1 -1
+1 -1
View File
@@ -282,7 +282,7 @@ class HomeDomainHandler extends Handler {
['home_domain', null],
];
let ddocs: DomainDoc[];
let dudict: Record<string, DomainDoc>;
let dudict: Record<string, DomainDoc> = {};
if (!this.user.hasPriv(PRIV.PRIV_VIEW_ALL_DOMAIN)) {
dudict = await domain.getDictUserByDomainId(this.user._id);
const dids = Object.keys(dudict);