mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 20:52:00 +08:00
[misc] prettify files
This commit is contained in:
@ -747,8 +747,8 @@ export const offersProfileRouter = createRouter()
|
|||||||
),
|
),
|
||||||
currency: exp.monthlySalary.currency,
|
currency: exp.monthlySalary.currency,
|
||||||
value: exp.monthlySalary.value,
|
value: exp.monthlySalary.value,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
where: {
|
where: {
|
||||||
id: exp.id,
|
id: exp.id,
|
||||||
@ -774,7 +774,7 @@ export const offersProfileRouter = createRouter()
|
|||||||
id: exp.totalCompensation.id,
|
id: exp.totalCompensation.id,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await ctx.prisma.offersExperience.update({
|
await ctx.prisma.offersExperience.update({
|
||||||
data: {
|
data: {
|
||||||
totalCompensation: {
|
totalCompensation: {
|
||||||
@ -787,20 +787,22 @@ export const offersProfileRouter = createRouter()
|
|||||||
),
|
),
|
||||||
currency: exp.totalCompensation.currency,
|
currency: exp.totalCompensation.currency,
|
||||||
value: exp.totalCompensation.value,
|
value: exp.totalCompensation.value,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
where: {
|
where: {
|
||||||
id: exp.id,
|
id: exp.id,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!exp.id) {
|
} else if (!exp.id) {
|
||||||
// Create new experience
|
// Create new experience
|
||||||
if (exp.jobType === JobType.FULLTIME) {
|
if (exp.jobType === JobType.FULLTIME) {
|
||||||
if (exp.totalCompensation?.currency != null &&
|
if (
|
||||||
exp.totalCompensation?.value != null) {
|
exp.totalCompensation?.currency != null &&
|
||||||
|
exp.totalCompensation?.value != null
|
||||||
|
) {
|
||||||
if (exp.companyId) {
|
if (exp.companyId) {
|
||||||
await ctx.prisma.offersBackground.update({
|
await ctx.prisma.offersBackground.update({
|
||||||
data: {
|
data: {
|
||||||
@ -910,8 +912,10 @@ export const offersProfileRouter = createRouter()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (exp.jobType === JobType.INTERN) {
|
} else if (exp.jobType === JobType.INTERN) {
|
||||||
if (exp.monthlySalary?.currency != null &&
|
if (
|
||||||
exp.monthlySalary?.value != null) {
|
exp.monthlySalary?.currency != null &&
|
||||||
|
exp.monthlySalary?.value != null
|
||||||
|
) {
|
||||||
if (exp.companyId) {
|
if (exp.companyId) {
|
||||||
await ctx.prisma.offersBackground.update({
|
await ctx.prisma.offersBackground.update({
|
||||||
data: {
|
data: {
|
||||||
|
@ -27,7 +27,7 @@ export const questionsAnswerCommentRouter = createProtectedRouter()
|
|||||||
createdAt: 'desc',
|
createdAt: 'desc',
|
||||||
},
|
},
|
||||||
where: {
|
where: {
|
||||||
answerId : input.answerId,
|
answerId: input.answerId,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return questionAnswerCommentsData.map((data) => {
|
return questionAnswerCommentsData.map((data) => {
|
||||||
|
Reference in New Issue
Block a user