From de8d6d61372f05cf13a67b1494a6a8e2972c5b85 Mon Sep 17 00:00:00 2001 From: rajpatelbot Date: Sun, 25 Aug 2024 02:10:19 +0530 Subject: [PATCH] fix: resolve linting errors --- prisma/seed.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index 49a17c83..dc68687d 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { Currency, Role, WorkMode } from '@prisma/client'; import bcrypt from 'bcryptjs'; import prisma from '../src/config/prisma.config'; @@ -437,7 +438,7 @@ const jobs = [ async function seedUsers() { try { const hashedPassword = await bcrypt.hash('123456', 10); - const dbUsers = await Promise.all( + await Promise.all( users.map( async (u) => await prisma.user.upsert({ @@ -464,7 +465,7 @@ async function seedUsers() { async function seedJobs() { try { - const dbJobs = await Promise.all( + await Promise.all( jobs.map(async (j) => prisma.job.upsert({ where: { id: j.id },