mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +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) {
|
||||
tasks.push(
|
||||
user.create(email, username, password).then((uid) => {
|
||||
if (displayName) return domain.setUserInDomain(domainId, uid, { displayName });
|
||||
return Promise.resolve();
|
||||
}),
|
||||
(async () => {
|
||||
const uid = await user.create(email, username, password);
|
||||
if (displayName) await domain.setUserInDomain(domainId, uid, { displayName });
|
||||
})(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user