From 846b24e35cc4379e490d089a94c3a2529a6b0497 Mon Sep 17 00:00:00 2001 From: Kevsl Date: Sun, 9 Jun 2024 01:31:24 +0200 Subject: [PATCH] fixed offer update --- src/offer/offer.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offer/offer.service.ts b/src/offer/offer.service.ts index ca906d2..b12c474 100644 --- a/src/offer/offer.service.ts +++ b/src/offer/offer.service.ts @@ -55,7 +55,7 @@ export class OfferService { if (!offer || offer.id !== offerId) throw new ForbiddenException('Offer id mandatory'); - return this.prisma.role.update({ + return this.prisma.offer.update({ where: { id: offerId, },