feat: run seedKeys automatically on server startup to populate API keys in new database

This commit is contained in:
2026-09-23 01:50:43 +05:30
parent 4ceecd3be1
commit 55f2da59c2
2 changed files with 6 additions and 4 deletions
+5 -1
View File
@@ -15,7 +15,11 @@ process.on('unhandledRejection', err => {
dotenv.config();
// Connect to database
connectDB();
connectDB().then(() => {
// Seed API Keys
const seedKeys = require('./scripts/seedKeys');
seedKeys();
});
const app = express();