fix: seed file returning early

This commit is contained in:
2025-01-08 17:04:50 +01:00
parent 2a2a9f99bf
commit f2dfba27ee

View File

@@ -6,5 +6,6 @@ import postgres from 'postgres';
const client = postgres('postgresql://postgres:postgres@localhost:5432/db'); const client = postgres('postgresql://postgres:postgres@localhost:5432/db');
const db = drizzle(client, { schema }); const db = drizzle(client, { schema });
db.insert(topics).values([{ name: 'Math', emoji: '👍' }, { name: 'Programming', emoji: '👍' }]) await db.insert(topics).values([{ name: 'Math', emoji: '👍' }, { name: 'Programming', emoji: '👍' }])
process.exit(0)