Add setting to disable database use.

This commit is contained in:
softsimon
2020-07-23 00:04:29 +07:00
parent 251b8cdd8d
commit 86c0a5ec7b
4 changed files with 9 additions and 18 deletions

View File

@@ -16,10 +16,10 @@ export class DB {
export async function checkDbConnection() {
try {
const connection = await DB.pool.getConnection();
console.log('MySQL connection established.');
console.log('Database connection established.');
connection.release();
} catch (e) {
console.log('Could not connect to MySQL.');
console.log('Could not connect to database.');
console.log(e);
process.exit(1);
}