Add client bonus access flag
This commit is contained in:
@@ -104,11 +104,16 @@ const manager = await prisma.user.upsert({
|
||||
|
||||
await prisma.user.upsert({
|
||||
where: { email: clientEmail },
|
||||
update: { fullName: 'Demo Client', companyId: company.id },
|
||||
update: {
|
||||
fullName: 'Demo Client',
|
||||
companyId: company.id,
|
||||
bonusProgramEnabled: true,
|
||||
},
|
||||
create: {
|
||||
email: clientEmail,
|
||||
fullName: 'Demo Client',
|
||||
role: 'CLIENT',
|
||||
bonusProgramEnabled: true,
|
||||
companyId: company.id,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user