Merge branch 'stuart/seed-db' of https://github.com/yangshun/tech-interview-handbook into stuart/seed-db

pull/501/head^2
Stuart Long Chay Boon 3 years ago
commit 0aa6ecb80b

@ -10,13 +10,8 @@
"tsc": "tsc", "tsc": "tsc",
"postinstall": "prisma generate", "postinstall": "prisma generate",
"seed": "ts-node prisma/seed.ts", "seed": "ts-node prisma/seed.ts",
<<<<<<< HEAD
"seed-questions": "ts-node prisma/seed-questions.ts",
"seedSalaries": "ts-node prisma/readSheet.ts"
=======
"seed-salaries": "ts-node prisma/seed-salaries.ts", "seed-salaries": "ts-node prisma/seed-salaries.ts",
"seed-questions": "ts-node prisma/seed-questions.ts" "seed-questions": "ts-node prisma/seed-questions.ts"
>>>>>>> cfab8715 ([offers][refactor] standardise seed script with question)
}, },
"dependencies": { "dependencies": {
"@headlessui/react": "^1.7.3", "@headlessui/react": "^1.7.3",
@ -48,6 +43,7 @@
"react-query": "^3.39.2", "react-query": "^3.39.2",
"read-excel-file": "^5.5.3", "read-excel-file": "^5.5.3",
"superjson": "^1.10.0", "superjson": "^1.10.0",
"xlsx": "^0.18.5",
"unique-names-generator": "^4.7.1", "unique-names-generator": "^4.7.1",
"xlsx": "^0.18.5", "xlsx": "^0.18.5",
"zod": "^3.18.0" "zod": "^3.18.0"

@ -235,7 +235,7 @@ model OffersProfile {
model OffersBackground { model OffersBackground {
id String @id @default(cuid()) id String @id @default(cuid())
totalYoe Int totalYoe Int @default(0)
specificYoes OffersSpecificYoe[] specificYoes OffersSpecificYoe[]
experiences OffersExperience[] experiences OffersExperience[]

@ -394,7 +394,7 @@ export const offersRouter = createRouter().query('list', {
numOfPages: Math.ceil(data.length / input.limit), numOfPages: Math.ceil(data.length / input.limit),
totalItems: data.length, totalItems: data.length,
}, },
!yoeRange ? JobType.INTERN : JobType.FULLTIME !yoeRange ? JobType.INTERN : JobType.FULLTIME,
); );
}, },
}); });

56598
package-lock.json generated

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save