Skip to content

Commit 11a17f9

Browse files
author
Joe Alves
committed
Changed how db connection was using the logging env variable to prevent deprecation warning
1 parent ded20c4 commit 11a17f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generated/server/db/_db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var Sequelize = require('sequelize');
33

44
var env = require(path.join(__dirname, '../env'));
55
var db = new Sequelize(env.DATABASE_URI, {
6-
logging: env.LOGGING,
6+
logging: env.LOGGING ? console.log : false,
77
native: env.NATIVE
88
});
99

0 commit comments

Comments
 (0)