'use strict';

const environment = require('../environment');
const Sequelize = require('sequelize');
const winston = require('winston');
const configuration = environment.database;

module.exports = app => {
  if (!app.sequelize) {
    configuration.options.logging = winston.debug;

    app.sequelize = new Sequelize(
      configuration.database,
      configuration.username,
      configuration.password,
      configuration.options
    );
  }
};

@@ -14,27 +14,25 @@
 %0A%0Aconst 
-environment
+Sequelize
  = requi
@@ -39,62 +39,64 @@
 re('
-../environment');%0Aconst Sequelize = require('sequelize
+sequelize');%0Aconst environment = require('../environment
 ');%0A
@@ -127,24 +127,25 @@
 'winston');%0A
+%0A
 const config

fix checkstyle configuration/sequelize