aboutsummaryrefslogtreecommitdiffstats
path: root/db/db.js
diff options
context:
space:
mode:
Diffstat (limited to 'db/db.js')
-rw-r--r--db/db.js26
1 files changed, 11 insertions, 15 deletions
diff --git a/db/db.js b/db/db.js
index 2d73723f..06fdac89 100644
--- a/db/db.js
+++ b/db/db.js
@@ -1,17 +1,13 @@
-import Sequelize from '@sequelize/core';
-import dbOptions from '../config/knexfile';
+import Sequelize from "@sequelize/core";
+import dbOptions from "../config/knexfile";
-let { database, user, password, host } = dbOptions[process.env.NODE_ENV].connection;
-
-export default new Sequelize(
- database,
- user,
- password,
- {
- host,
- dialect: "mariadb",
- logging: false,
- dialectOptions: { multipleStatements: true, timezone: "Etc/GMT+7" },
- }
-);
+let { database, user, password, host } = dbOptions[
+ process.env.NODE_ENV
+].connection;
+export default new Sequelize(database, user, password, {
+ host,
+ dialect: "mariadb",
+ logging: false,
+ dialectOptions: { multipleStatements: true, timezone: "Etc/GMT+7" }
+});