mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 06: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,
|
||||
},
|
||||
});
|
||||
|
||||
const crypto = await this.prisma.crypto.findFirst({
|
||||
where: {
|
||||
id: offer.id_crypto,
|
||||
@ -68,7 +69,7 @@ export class TradeService {
|
||||
|
||||
const buyer = await this.prisma.user.findFirst({
|
||||
where: {
|
||||
id: offer.id_user,
|
||||
id: userId,
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user