mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 20:52:00 +08:00
[offers][chore] Make totalYoe compulsory in create offer profile API
This commit is contained in:
@ -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),
|
||||
}),
|
||||
|
Reference in New Issue
Block a user