chore: promote mohan.k to admin

This commit is contained in:
Mohan Ki
2026-07-27 15:13:14 +05:30
parent 7de6b1dca5
commit 842dcc1f03
+3
View File
@@ -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);
}