@@ -24,10 +24,22 @@ config({ path: join(__dirname, '../../.env') });
2424
2525const GENERIC_PROVIDER_ID = 'aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa' ;
2626const SEED_USERS = [
27- { email : 'admin@invoicescan.com' , password : 'Admin1234!' , role : 'admin' } ,
28- { email : 'approver@invoicescan.com' , password : 'Approver1234!' , role : 'approver' } ,
29- { email : 'validator@invoicescan.com' , password : 'Validator1234!' , role : 'validator' } ,
30- { email : 'uploader@invoicescan.com' , password : 'Uploader1234!' , role : 'uploader' } ,
27+ { email : 'admin@invoicescan.com' , password : 'Admin1234!' , role : 'admin' } ,
28+ {
29+ email : 'approver@invoicescan.com' ,
30+ password : 'Approver1234!' ,
31+ role : 'approver' ,
32+ } ,
33+ {
34+ email : 'validator@invoicescan.com' ,
35+ password : 'Validator1234!' ,
36+ role : 'validator' ,
37+ } ,
38+ {
39+ email : 'uploader@invoicescan.com' ,
40+ password : 'Uploader1234!' ,
41+ role : 'uploader' ,
42+ } ,
3143] ;
3244
3345async function runSeed ( ds : DataSource ) : Promise < void > {
@@ -66,7 +78,9 @@ async function runSeed(ds: DataSource): Promise<void> {
6678 ) ;
6779 }
6880
69- console . log ( `[run-migrations] Seed: ${ created } user(s) created, ${ SEED_USERS . length - created } already existed.` ) ;
81+ console . log (
82+ `[run-migrations] Seed: ${ created } user(s) created, ${ SEED_USERS . length - created } already existed.` ,
83+ ) ;
7084}
7185
7286async function runMigrations ( ) : Promise < void > {
0 commit comments