Skip to content

Commit

Permalink
fix: resolve linting errors (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajpatelbot authored Aug 26, 2024
1 parent 51af869 commit 3c2cab6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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({
Expand All @@ -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 },
Expand Down

0 comments on commit 3c2cab6

Please sign in to comment.