fix : fixed trade

This commit is contained in:
Kevsl 2024-06-13 11:47:15 +02:00
parent c28c3bd71d
commit f6dddf8aef

View File

@ -60,6 +60,7 @@ export class TradeService {
id: dto.id_offer, id: dto.id_offer,
}, },
}); });
const crypto = await this.prisma.crypto.findFirst({ const crypto = await this.prisma.crypto.findFirst({
where: { where: {
id: offer.id_crypto, id: offer.id_crypto,
@ -68,7 +69,7 @@ export class TradeService {
const buyer = await this.prisma.user.findFirst({ const buyer = await this.prisma.user.findFirst({
where: { where: {
id: offer.id_user, id: userId,
}, },
}); });