feat: run seedKeys automatically on server startup to populate API keys in new database
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user