mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix typings
This commit is contained in:
1 parent
4a613c47d5
commit
9d8f2d28e5
1 file changed
+4
-4
@@ -205,10 +205,10 @@ class SystemUserImportHandler extends SystemHandler {
|
|||||||
});
|
});
|
||||||
if (!confirm) {
|
if (!confirm) {
|
||||||
tasks.push(
|
tasks.push(
|
||||||
user.create(email, username, password).then((uid) => {
|
(async () => {
|
||||||
if (displayName) return domain.setUserInDomain(domainId, uid, { displayName });
|
const uid = await user.create(email, username, password);
|
||||||
return Promise.resolve();
|
if (displayName) await domain.setUserInDomain(domainId, uid, { displayName });
|
||||||
}),
|
})(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user