mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
minor: logging, update, cleaning
This commit is contained in:
@@ -12,13 +12,9 @@ const db = {};
|
||||
/** @type {typedefs.Sequelize} */
|
||||
let sequelize;
|
||||
if (config.use_env_variable) {
|
||||
sequelize = new Sequelize(process.env[config.use_env_variable], config, {
|
||||
logging: (msg) => logger.debug(msg)
|
||||
});
|
||||
sequelize = new Sequelize(process.env[config.use_env_variable], config);
|
||||
} else {
|
||||
sequelize = new Sequelize(config.database, config.username, config.password, config, {
|
||||
logging: (msg) => logger.debug(msg)
|
||||
});
|
||||
sequelize = new Sequelize(config.database, config.username, config.password, config);
|
||||
}
|
||||
|
||||
(async () => {
|
||||
|
||||
Reference in New Issue
Block a user