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',
|
role: 'admin',
|
||||||
subscriptionStatus: 'ACTIVE',
|
subscriptionStatus: 'ACTIVE',
|
||||||
asaasCustomerId: null,
|
asaasCustomerId: null,
|
||||||
cpf: '111.111.111-11',
|
cpf: '691.238.910-40',
|
||||||
unlockedCourses: [],
|
unlockedCourses: [],
|
||||||
createdAt: now
|
createdAt: now
|
||||||
},
|
},
|
||||||
|
|
@ -98,7 +98,7 @@ function createInitialDb(): DatabaseSchema {
|
||||||
role: 'student',
|
role: 'student',
|
||||||
subscriptionStatus: 'ACTIVE',
|
subscriptionStatus: 'ACTIVE',
|
||||||
asaasCustomerId: 'cus_00001',
|
asaasCustomerId: 'cus_00001',
|
||||||
cpf: '111.111.111-11',
|
cpf: '691.238.910-40',
|
||||||
unlockedCourses: ['crs_excel'], // Excel starts unlocked for Joao
|
unlockedCourses: ['crs_excel'], // Excel starts unlocked for Joao
|
||||||
createdAt: new Date(Date.now() - 30 * 24 * 3600 * 1000).toISOString()
|
createdAt: new Date(Date.now() - 30 * 24 * 3600 * 1000).toISOString()
|
||||||
},
|
},
|
||||||
|
|
@ -110,7 +110,7 @@ function createInitialDb(): DatabaseSchema {
|
||||||
role: 'student',
|
role: 'student',
|
||||||
subscriptionStatus: 'ACTIVE',
|
subscriptionStatus: 'ACTIVE',
|
||||||
asaasCustomerId: 'cus_00002',
|
asaasCustomerId: 'cus_00002',
|
||||||
cpf: '111.111.111-11',
|
cpf: '691.238.910-40',
|
||||||
unlockedCourses: [],
|
unlockedCourses: [],
|
||||||
createdAt: new Date(Date.now() - 15 * 24 * 3600 * 1000).toISOString()
|
createdAt: new Date(Date.now() - 15 * 24 * 3600 * 1000).toISOString()
|
||||||
},
|
},
|
||||||
|
|
@ -122,7 +122,7 @@ function createInitialDb(): DatabaseSchema {
|
||||||
role: 'student',
|
role: 'student',
|
||||||
subscriptionStatus: 'OVERDUE',
|
subscriptionStatus: 'OVERDUE',
|
||||||
asaasCustomerId: 'cus_00003',
|
asaasCustomerId: 'cus_00003',
|
||||||
cpf: '111.111.111-11',
|
cpf: '691.238.910-40',
|
||||||
unlockedCourses: [],
|
unlockedCourses: [],
|
||||||
createdAt: new Date(Date.now() - 45 * 24 * 3600 * 1000).toISOString()
|
createdAt: new Date(Date.now() - 45 * 24 * 3600 * 1000).toISOString()
|
||||||
},
|
},
|
||||||
|
|
@ -134,7 +134,7 @@ function createInitialDb(): DatabaseSchema {
|
||||||
role: 'student',
|
role: 'student',
|
||||||
subscriptionStatus: 'CANCELED',
|
subscriptionStatus: 'CANCELED',
|
||||||
asaasCustomerId: 'cus_00004',
|
asaasCustomerId: 'cus_00004',
|
||||||
cpf: '111.111.111-11',
|
cpf: '691.238.910-40',
|
||||||
unlockedCourses: [],
|
unlockedCourses: [],
|
||||||
createdAt: new Date(Date.now() - 60 * 24 * 3600 * 1000).toISOString()
|
createdAt: new Date(Date.now() - 60 * 24 * 3600 * 1000).toISOString()
|
||||||
},
|
},
|
||||||
|
|
@ -146,7 +146,7 @@ function createInitialDb(): DatabaseSchema {
|
||||||
role: 'student',
|
role: 'student',
|
||||||
subscriptionStatus: 'ACTIVE',
|
subscriptionStatus: 'ACTIVE',
|
||||||
asaasCustomerId: 'cus_test',
|
asaasCustomerId: 'cus_test',
|
||||||
cpf: '111.111.111-11',
|
cpf: '691.238.910-40',
|
||||||
unlockedCourses: [], // Starts with only the free courses unlocked
|
unlockedCourses: [], // Starts with only the free courses unlocked
|
||||||
createdAt: now
|
createdAt: now
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue