Add client bonus access flag

This commit is contained in:
Ruslan Bakiev
2026-05-16 17:16:31 +07:00
parent c641a3dd23
commit fcc2eb7450
6 changed files with 151 additions and 43 deletions

View File

@@ -161,12 +161,14 @@ async function upsertClient(index) {
update: {
fullName: fullNameForIndex(index),
role: 'CLIENT',
bonusProgramEnabled: index % 2 === 1,
companyId: company.id,
},
create: {
email: buildClientEmail(index),
fullName: fullNameForIndex(index),
role: 'CLIENT',
bonusProgramEnabled: index % 2 === 1,
companyId: company.id,
},
});