fixed promoCode

This commit is contained in:
Kevsl 2024-06-08 10:11:12 +02:00
parent b7f765f488
commit a43064d618

View File

@ -30,7 +30,7 @@ export class AuthService {
let balance = 1000; let balance = 1000;
if (promoCode && promoCode.value) { if (promoCode && promoCode.value) {
balance = promoCode.value; balance += promoCode.value;
} }
try { try {
const user = await this.prisma.user.create({ const user = await this.prisma.user.create({