fix: use mathematically valid cpf for seed users to avoid asaas validation errors
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 47s
Details
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 47s
Details
This commit is contained in:
parent
8bc4226185
commit
3d0420b006
12
src/db/db.ts
12
src/db/db.ts
|
|
@ -86,7 +86,7 @@ function createInitialDb(): DatabaseSchema {
|
|||
role: 'admin',
|
||||
subscriptionStatus: 'ACTIVE',
|
||||
asaasCustomerId: null,
|
||||
cpf: '111.111.111-11',
|
||||
cpf: '691.238.910-40',
|
||||
unlockedCourses: [],
|
||||
createdAt: now
|
||||
},
|
||||
|
|
@ -98,7 +98,7 @@ function createInitialDb(): DatabaseSchema {
|
|||
role: 'student',
|
||||
subscriptionStatus: 'ACTIVE',
|
||||
asaasCustomerId: 'cus_00001',
|
||||
cpf: '111.111.111-11',
|
||||
cpf: '691.238.910-40',
|
||||
unlockedCourses: ['crs_excel'], // Excel starts unlocked for Joao
|
||||
createdAt: new Date(Date.now() - 30 * 24 * 3600 * 1000).toISOString()
|
||||
},
|
||||
|
|
@ -110,7 +110,7 @@ function createInitialDb(): DatabaseSchema {
|
|||
role: 'student',
|
||||
subscriptionStatus: 'ACTIVE',
|
||||
asaasCustomerId: 'cus_00002',
|
||||
cpf: '111.111.111-11',
|
||||
cpf: '691.238.910-40',
|
||||
unlockedCourses: [],
|
||||
createdAt: new Date(Date.now() - 15 * 24 * 3600 * 1000).toISOString()
|
||||
},
|
||||
|
|
@ -122,7 +122,7 @@ function createInitialDb(): DatabaseSchema {
|
|||
role: 'student',
|
||||
subscriptionStatus: 'OVERDUE',
|
||||
asaasCustomerId: 'cus_00003',
|
||||
cpf: '111.111.111-11',
|
||||
cpf: '691.238.910-40',
|
||||
unlockedCourses: [],
|
||||
createdAt: new Date(Date.now() - 45 * 24 * 3600 * 1000).toISOString()
|
||||
},
|
||||
|
|
@ -134,7 +134,7 @@ function createInitialDb(): DatabaseSchema {
|
|||
role: 'student',
|
||||
subscriptionStatus: 'CANCELED',
|
||||
asaasCustomerId: 'cus_00004',
|
||||
cpf: '111.111.111-11',
|
||||
cpf: '691.238.910-40',
|
||||
unlockedCourses: [],
|
||||
createdAt: new Date(Date.now() - 60 * 24 * 3600 * 1000).toISOString()
|
||||
},
|
||||
|
|
@ -146,7 +146,7 @@ function createInitialDb(): DatabaseSchema {
|
|||
role: 'student',
|
||||
subscriptionStatus: 'ACTIVE',
|
||||
asaasCustomerId: 'cus_test',
|
||||
cpf: '111.111.111-11',
|
||||
cpf: '691.238.910-40',
|
||||
unlockedCourses: [], // Starts with only the free courses unlocked
|
||||
createdAt: now
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue