mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 14:00:12 +02:00
fix : fixed trade
This commit is contained in:
parent
c28c3bd71d
commit
f6dddf8aef
@ -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,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user