Skip to content

Commit 9ca419a

Browse files
committed
patch
1 parent 25324e8 commit 9ca419a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/create-users.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dotenv.config();
1414
const USER_DATABASE_ID = '64c4de8e7b30179809ef';
1515
const USER_COLLECTION_ID = '64c4fb401e0a490e44bf';
1616

17-
const DEFAULT_PASSWORD = 'alpine';
17+
const DEFAULT_PASSWORD = 'alpine123';
1818

1919
const client = new sdk.Client();
2020

@@ -50,13 +50,13 @@ await fs.mkdir("backup/databases", { recursive: true });
5050
for (const file of usersFiles) {
5151
const text = await fs.readFile(file);
5252
const data = JSON.parse(text);
53-
const { $id, email, phone } = data;
53+
const { $id, email } = data;
5454
if (await tryRead($id)) {
5555
console.log(`User ${$id} exist (${email})`);
5656
continue;
5757
}
58-
console.log(`Creating ${$id} exist (${email})`);
59-
await users.create($id, email, phone, DEFAULT_PASSWORD);
58+
console.log(`Creating ${$id} user (${email})`);
59+
await users.create($id, email, undefined, DEFAULT_PASSWORD);
6060
await sleep(1_000);
6161
}
6262
}

0 commit comments

Comments
 (0)