mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 06:00:12 +02:00
fixed offer update
This commit is contained in:
parent
ab276380d4
commit
846b24e35c
@ -55,7 +55,7 @@ export class OfferService {
|
|||||||
if (!offer || offer.id !== offerId)
|
if (!offer || offer.id !== offerId)
|
||||||
throw new ForbiddenException('Offer id mandatory');
|
throw new ForbiddenException('Offer id mandatory');
|
||||||
|
|
||||||
return this.prisma.role.update({
|
return this.prisma.offer.update({
|
||||||
where: {
|
where: {
|
||||||
id: offerId,
|
id: offerId,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user