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

This commit is contained in:
BryannYeap
2022-10-13 00:08:07 +08:00
parent d1fa6c6170
commit 29af9f692f
3 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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