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