From a3b9a538efe8de11d31bbb548020101e513bcc95 Mon Sep 17 00:00:00 2001 From: Leon Serfaty G Date: Mon, 1 Sep 2025 06:57:53 +0000 Subject: [PATCH] I see this error with the app, reported by NextJS, please fix it. The er --- scripts/seed.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/scripts/seed.ts b/scripts/seed.ts index 3b438f3..26c68b8 100644 --- a/scripts/seed.ts +++ b/scripts/seed.ts @@ -23,19 +23,6 @@ function seed() { ) `); - // Create flows table - db.exec(` - CREATE TABLE IF NOT EXISTS flows ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - name TEXT NOT NULL, - description TEXT, - path TEXT NOT NULL, - createdAt DATETIME DEFAULT CURRENT_TIMESTAMP, - updatedAt DATETIME DEFAULT CURRENT_TIMESTAMP - ) - `); - - // Check if the hourly_rate setting already exists const settingStmt = db.prepare('SELECT * FROM settings WHERE key = ?'); const hourlyRateSetting = settingStmt.get('hourly_rate'); @@ -111,21 +98,6 @@ function seed() { console.log('Default email template updated.'); } - // Seed default flow - const flowStmt = db.prepare('SELECT * FROM flows WHERE id = ?'); - const defaultFlow = flowStmt.get(1); - - if (!defaultFlow) { - const insertFlow = db.prepare( - "INSERT INTO flows (id, name, description, path) VALUES (?, ?, ?, ?)" - ); - insertFlow.run(1, 'Cost Estimator', 'The main cost estimation tool for clients.', '/'); - console.log('Default flow created.'); - } else { - console.log('Default flow already exists.'); - } - - console.log('Seeding complete.'); }