From cf5fd437e58925e04c99bad0216a6ce13d017fa1 Mon Sep 17 00:00:00 2001 From: Bryann Yeap Kok Keong Date: Mon, 24 Oct 2022 23:48:39 +0800 Subject: [PATCH] [offers][chore] Removed specialization --- apps/portal/prisma/readSheet.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/portal/prisma/readSheet.ts b/apps/portal/prisma/readSheet.ts index 3852cd62..8622c33f 100644 --- a/apps/portal/prisma/readSheet.ts +++ b/apps/portal/prisma/readSheet.ts @@ -42,12 +42,6 @@ function xlSerialToJsDate(xlSerial) { return new Date(Date.UTC(0, 0, xlSerial - 1)); } -function generateSpecialization() { - const specializations = ['Frontend', 'Backend', 'Fullstack']; - - return specializations[Math.floor(Math.random() * 300) % 3]; -} - const getJobTitle = (role: string) => { const processedRole = role.toUpperCase().trim(); @@ -146,7 +140,6 @@ const seedSalaries = async () => { value: data.Income, }, }, - specialization: generateSpecialization(), // TODO: check about this startYear: xlSerialToJsDate( data.Timestamp, ).getFullYear(), @@ -219,7 +212,6 @@ const seedSalaries = async () => { }, }, level: data.Type, - specialization: generateSpecialization(), // TODO: check about this stocks: { create: { baseCurrency: baseCurrencyString,