mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
core: user_import: rename to draft
This commit is contained in:
1 parent
1ec793d039
commit
c250c8e925
3 files changed
+8
-4
No files matched your search
@@ -186,8 +186,8 @@ class SystemUserImportHandler extends SystemHandler {
|
||||
}
|
||||
|
||||
@param('users', Types.String)
|
||||
@param('confirm', Types.Boolean)
|
||||
async post(domainId: string, _users: string, confirm: boolean) {
|
||||
@param('draft', Types.Boolean)
|
||||
async post(domainId: string, _users: string, draft: boolean) {
|
||||
const users = _users.split('\n');
|
||||
const udocs = [];
|
||||
const tasks = [];
|
||||
@@ -203,7 +203,7 @@ class SystemUserImportHandler extends SystemHandler {
|
||||
udocs.push({
|
||||
email, username, password, displayName,
|
||||
});
|
||||
if (!confirm) {
|
||||
if (!draft) {
|
||||
tasks.push(
|
||||
(async () => {
|
||||
const uid = await user.create(email, username, password);
|
||||
|
||||
Reference in new issue
Block a user