fix ( lock file and seed )

This commit is contained in:
Abubeker Yasin
2026-06-24 14:23:08 +03:00
parent 51c400bb6e
commit dd966df5e9
2 changed files with 4 additions and 10 deletions

View File

@@ -59,9 +59,9 @@ async function seedSystemUsers() {
}); });
} }
await prisma.userPreferences.upsert({ await prisma.userPreferences.upsert({
where: { userId: passenger.id }, where: { iamUserId: passenger.id },
update: {}, update: {},
create: { userId: passenger.id, language: 'en' }, create: { iamUserId: passenger.id, language: 'en' },
}); });
console.log(' ✅ Passenger: kelemu@email.com / password123'); console.log(' ✅ Passenger: kelemu@email.com / password123');
@@ -79,9 +79,9 @@ async function seedSystemUsers() {
}, },
}); });
await prisma.agent.upsert({ await prisma.agent.upsert({
where: { userId: agent.id }, where: { agentCode: 'AG0001' },
update: {}, update: {},
create: { userId: agent.id, agentCode: 'AG0001', commissionRate: 5 }, create: { agentCode: 'AG0001', commissionRate: 5 },
}); });
console.log(' ✅ Agent: agent@edr-platform.com / agent123'); console.log(' ✅ Agent: agent@edr-platform.com / agent123');

6
pnpm-lock.yaml generated
View File

@@ -157,9 +157,6 @@ importers:
'@types/jest': '@types/jest':
specifier: ^29.5.13 specifier: ^29.5.13
version: 29.5.14 version: 29.5.14
'@types/luxon':
specifier: ^3.7.1
version: 3.7.1
'@types/multer': '@types/multer':
specifier: ^2.1.0 specifier: ^2.1.0
version: 2.1.0 version: 2.1.0
@@ -826,9 +823,6 @@ importers:
'@types/jest': '@types/jest':
specifier: ^29.5.13 specifier: ^29.5.13
version: 29.5.14 version: 29.5.14
'@types/luxon':
specifier: ^3.7.1
version: 3.7.1
'@types/node': '@types/node':
specifier: ^20.14.0 specifier: ^20.14.0
version: 20.19.42 version: 20.19.42