Skip to content

Commit

Permalink
fixes Sequelize operator deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Jan 3, 2019
1 parent ccbaaf2 commit 7fbc0dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const moduleRegex = /@datawheel\/canon\-([A-z]+)\//g;
*/
function moduleName(path) {
const exec = moduleRegex.exec(path);
return exec ? exec[1] : "local";
return exec ? exec[1] : name;
}

/**
Expand Down Expand Up @@ -217,7 +217,8 @@ async function start() {
host: dbHost,
dialect: "postgres",
define: {timestamps: true},
logging: () => {}
logging: () => {},
operatorsAliases: Sequelize.Op
}
));
shell.echo(`Database: ${dbUser}@${dbHost}`);
Expand Down

0 comments on commit 7fbc0dd

Please sign in to comment.