diff options
| author | Adam Soltys <[email protected]> | 2022-09-23 00:08:07 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-22 21:12:35 -0700 |
| commit | a6a655cc1f742a626f9ddfebeab6f806f40597c2 (patch) | |
| tree | 7af8796c924c18016e63dda65397bfbf468476fa /db | |
| parent | 1a77da8e3447e7884016d16f72515c4982db75a6 (diff) | |
| download | coinos-server-a6a655cc1f742a626f9ddfebeab6f806f40597c2.tar.gz coinos-server-a6a655cc1f742a626f9ddfebeab6f806f40597c2.zip | |
prod config
Diffstat (limited to 'db')
| -rw-r--r-- | db/db.js | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -1,13 +1,5 @@ import Sequelize from "@sequelize/core"; -import dbOptions from "../config/knexfile"; +import config from "$config"; -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, options } = config.db; +export default new Sequelize(database, user, password, options); |
