mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 21:23:14 +08:00
[misc] prettify files
This commit is contained in:
@ -747,8 +747,8 @@ export const offersProfileRouter = createRouter()
|
||||
),
|
||||
currency: exp.monthlySalary.currency,
|
||||
value: exp.monthlySalary.value,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
where: {
|
||||
id: exp.id,
|
||||
@ -787,8 +787,8 @@ export const offersProfileRouter = createRouter()
|
||||
),
|
||||
currency: exp.totalCompensation.currency,
|
||||
value: exp.totalCompensation.value,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
where: {
|
||||
id: exp.id,
|
||||
@ -799,8 +799,10 @@ export const offersProfileRouter = createRouter()
|
||||
} else if (!exp.id) {
|
||||
// Create new experience
|
||||
if (exp.jobType === JobType.FULLTIME) {
|
||||
if (exp.totalCompensation?.currency != null &&
|
||||
exp.totalCompensation?.value != null) {
|
||||
if (
|
||||
exp.totalCompensation?.currency != null &&
|
||||
exp.totalCompensation?.value != null
|
||||
) {
|
||||
if (exp.companyId) {
|
||||
await ctx.prisma.offersBackground.update({
|
||||
data: {
|
||||
@ -910,8 +912,10 @@ export const offersProfileRouter = createRouter()
|
||||
});
|
||||
}
|
||||
} else if (exp.jobType === JobType.INTERN) {
|
||||
if (exp.monthlySalary?.currency != null &&
|
||||
exp.monthlySalary?.value != null) {
|
||||
if (
|
||||
exp.monthlySalary?.currency != null &&
|
||||
exp.monthlySalary?.value != null
|
||||
) {
|
||||
if (exp.companyId) {
|
||||
await ctx.prisma.offersBackground.update({
|
||||
data: {
|
||||
|
Reference in New Issue
Block a user