aboutsummaryrefslogtreecommitdiffstats
path: root/db/db.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-06 09:20:25 -0700
committerAdam Soltys <[email protected]>2022-09-06 09:20:25 -0700
commitc2464b2407ee23134732fd67586758dbfe18f9b5 (patch)
tree3e2d9f009bb325a9a7c4304ea02f6e64dda85bd1 /db/db.js
parent8a080ef9a198799e7ee31cf81f92afd5495e4074 (diff)
downloadcoinos-server-c2464b2407ee23134732fd67586758dbfe18f9b5.tar.gz
coinos-server-c2464b2407ee23134732fd67586758dbfe18f9b5.zip
prettier
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" }
+});