[offers][fix] Fix adding location to experience when creating offer profiles

pull/551/head
Bryann Yeap Kok Keong 2 years ago
parent 1db5e46fcf
commit 00cdc2ff8c

@ -351,11 +351,9 @@ export const offersProfileRouter = createRouter()
level: x.level,
location: {
connect: {
where: {
id: x.cityId,
},
},
},
title: x.title,
totalCompensation:
x.totalCompensation != null
@ -409,11 +407,9 @@ export const offersProfileRouter = createRouter()
jobType: x.jobType,
location: {
connect: {
where: {
id: x.cityId,
},
},
},
monthlySalary:
x.monthlySalary != null
? {
@ -463,9 +459,9 @@ export const offersProfileRouter = createRouter()
return {
durationInMonths: x.durationInMonths,
jobType: x.jobType,
location: {
location: {
connect: {
where: {
id: x.cityId,
},
},

Loading…
Cancel
Save