From 7419cb4608e209255af9b5db3b0a6cf4665631bb Mon Sep 17 00:00:00 2001 From: Stuart Long Chay Boon Date: Thu, 3 Nov 2022 11:06:54 +0800 Subject: [PATCH] [offers][fix] fix create offer bug --- .../src/server/router/offers/offers-profile-router.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/portal/src/server/router/offers/offers-profile-router.ts b/apps/portal/src/server/router/offers/offers-profile-router.ts index d669c85c..43f51840 100644 --- a/apps/portal/src/server/router/offers/offers-profile-router.ts +++ b/apps/portal/src/server/router/offers/offers-profile-router.ts @@ -680,9 +680,7 @@ export const offersProfileRouter = createRouter() jobType: x.jobType, location: { connect: { - where: { - id: x.cityId - } + id: x.cityId } }, monthYearReceived: x.monthYearReceived, @@ -726,9 +724,7 @@ export const offersProfileRouter = createRouter() jobType: x.jobType, location: { connect: { - where: { - id: x.cityId - } + id: x.cityId } }, monthYearReceived: x.monthYearReceived,