fixed offer update

This commit is contained in:
Kevsl 2024-06-09 01:31:24 +02:00
parent ab276380d4
commit 846b24e35c

View File

@ -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,
}, },