File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dotenv.config();
14
14
const USER_DATABASE_ID = '64c4de8e7b30179809ef' ;
15
15
const USER_COLLECTION_ID = '64c4fb401e0a490e44bf' ;
16
16
17
- const DEFAULT_PASSWORD = 'alpine ' ;
17
+ const DEFAULT_PASSWORD = 'alpine123 ' ;
18
18
19
19
const client = new sdk . Client ( ) ;
20
20
@@ -50,13 +50,13 @@ await fs.mkdir("backup/databases", { recursive: true });
50
50
for ( const file of usersFiles ) {
51
51
const text = await fs . readFile ( file ) ;
52
52
const data = JSON . parse ( text ) ;
53
- const { $id, email, phone } = data ;
53
+ const { $id, email } = data ;
54
54
if ( await tryRead ( $id ) ) {
55
55
console . log ( `User ${ $id } exist (${ email } )` ) ;
56
56
continue ;
57
57
}
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 ) ;
60
60
await sleep ( 1_000 ) ;
61
61
}
62
62
}
You can’t perform that action at this time.
0 commit comments