From 3d0420b0069872f7e490bd9e46344bc83e86e0fe Mon Sep 17 00:00:00 2001 From: Sidney Gomes Date: Tue, 21 Jul 2026 19:52:30 -0300 Subject: [PATCH] fix: use mathematically valid cpf for seed users to avoid asaas validation errors --- src/db/db.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/db/db.ts b/src/db/db.ts index bb2e1dc..182f2d7 100644 --- a/src/db/db.ts +++ b/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 }