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
+1 -3
View File
@@ -32,11 +32,9 @@ async function seedKeys() {
);
console.log('Successfully encrypted and stored Perfect Corp API keys in the database.');
process.exit(0);
} catch (error) {
console.error('Error seeding keys:', error);
process.exit(1);
}
}
seedKeys();
module.exports = seedKeys;