[offers][chore] Make totalYoe compulsory in create offer profile API

pull/374/head
BryannYeap 2 years ago
parent d1fa6c6170
commit 29af9f692f

@ -38,7 +38,7 @@ function Test() {
],
experiences: [
{
companyId: 'cl93patjt0003txewyiaky7xx',
companyId: 'cl93patjt0004txew88wkcqpu',
durationInMonths: 24,
jobType: 'FULLTIME',
level: 'Junior',
@ -66,7 +66,7 @@ function Test() {
offers: [
{
// Comments: '',
companyId: 'cl93patjt0003txewyiaky7xx',
companyId: 'cl93patjt0004txew88wkcqpu',
job: {
base: {
currency: 'SGD',
@ -95,7 +95,7 @@ function Test() {
},
{
comments: undefined,
companyId: 'cl93patjt0003txewyiaky7xx',
companyId: 'cl93patjt0004txew88wkcqpu',
job: {
base: {
currency: 'SGD',

@ -6,10 +6,10 @@ function Test() {
const data = trpc.useQuery([
'offers.list',
{
companyId: 'cl93patjt0003txewyiaky7xx',
limit: 2,
companyId: 'cl93patjt0004txew88wkcqpu',
limit: 20,
location: 'Singapore, Singapore',
offset: 3,
offset: 0,
sortBy: '-monthYearReceived',
yoeCategory: 1,
},

@ -144,7 +144,7 @@ export const offersProfileRouter = createRouter()
yoe: z.number(),
}),
),
totalYoe: z.number().optional(),
totalYoe: z.number(),
}),
offers: z.array(offer),
}),

Loading…
Cancel
Save