|
|
@ -2,9 +2,18 @@ import reader from 'xlsx';
|
|
|
|
|
|
|
|
|
|
|
|
const file = reader.readFile('prisma/salaries.xlsx');
|
|
|
|
const file = reader.readFile('prisma/salaries.xlsx');
|
|
|
|
|
|
|
|
|
|
|
|
export const COMPANIES = []
|
|
|
|
export const COMPANIES: Array<CompanyData> = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type CompanyData = {
|
|
|
|
|
|
|
|
Finalized: string;
|
|
|
|
|
|
|
|
description: string;
|
|
|
|
|
|
|
|
logoUrl: string;
|
|
|
|
|
|
|
|
name: string;
|
|
|
|
|
|
|
|
slug: string;
|
|
|
|
|
|
|
|
website: string;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const temp = reader.utils.sheet_to_json(file.Sheets[file.SheetNames[1]]);
|
|
|
|
const temp = reader.utils.sheet_to_json(file.Sheets[file.SheetNames[1]]);
|
|
|
|
temp.forEach((res) => {
|
|
|
|
temp.forEach((res: CompanyData) => {
|
|
|
|
COMPANIES.push(res);
|
|
|
|
COMPANIES.push(res);
|
|
|
|
});
|
|
|
|
});
|