Skip to content

Commit

Permalink
Fix imports for seed
Browse files Browse the repository at this point in the history
  • Loading branch information
rkperes committed May 13, 2024
1 parent dee012e commit 24eca11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PrismaClient } from '@prisma/client';
import * as fs from 'fs';
import { readFileSync } from 'fs';

const prisma = new PrismaClient();

async function main() {
const devDump = fs.readFileSync('./prisma/dev_dump.sql', 'utf-8');
const devDump = readFileSync('./prisma/dev_dump.sql', 'utf-8');

for (const query of devDump.split('\n')) {
if (query.trim() === '') {
Expand Down

0 comments on commit 24eca11

Please sign in to comment.