fix: Exit process after creating database and user
This commit is contained in:
@@ -61,6 +61,7 @@ export const createDatabaseAndUser = async (
|
|||||||
await grantPrivileges(database, user);
|
await grantPrivileges(database, user);
|
||||||
|
|
||||||
await client.end();
|
await client.end();
|
||||||
|
process.exit(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const createDatabase = async (database = appConfig.postgresDatabase) => {
|
export const createDatabase = async (database = appConfig.postgresDatabase) => {
|
||||||
|
Reference in New Issue
Block a user