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

This commit is contained in:
Sidney Gomes 2026-07-21 19:52:30 -03:00
parent 8bc4226185
commit 3d0420b006
1 changed files with 6 additions and 6 deletions

View File

@ -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
} }