mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2026-02-04 10:06:13 +01:00
fixed promoCode
This commit is contained in:
@@ -30,7 +30,7 @@ export class AuthService {
|
||||
|
||||
let balance = 1000;
|
||||
if (promoCode && promoCode.value) {
|
||||
balance = promoCode.value;
|
||||
balance += promoCode.value;
|
||||
}
|
||||
try {
|
||||
const user = await this.prisma.user.create({
|
||||
|
||||
Reference in New Issue
Block a user