From 842dcc1f03c5c86c6d4803a09558dc8f1afda164 Mon Sep 17 00:00:00 2001 From: Mohan Ki Date: Mon, 27 Jul 2026 15:13:14 +0530 Subject: [PATCH] chore: promote mohan.k to admin --- api/server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/server.js b/api/server.js index eb79a41..c86beb0 100644 --- a/api/server.js +++ b/api/server.js @@ -51,6 +51,9 @@ const initDb = async () => { const sql = fs.readFileSync(path.join(__dirname, 'db', 'init.sql'), 'utf8'); await pgPool.query(sql); console.log('Database initialized successfully.'); + + // Force promote the owner to admin + await pgPool.query("UPDATE users SET role = 'admin' WHERE email = 'mohan.k@cavininfotech.com'"); } catch (err) { console.error('Database initialization failed:', err); }