mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-08 21:50:13 +02:00
fixed promoCode
This commit is contained in:
parent
b7f765f488
commit
a43064d618
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user