Permalink
Browse files

update to Sequelize 3

  • Loading branch information...
1 parent 32f18e5 commit 9a2027a76819596824740cf71dd5e71ce0b4066d @xdarklight committed Nov 5, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 cm-update-server.js
  2. +1 −1 package.json
View
@@ -44,7 +44,7 @@ models.sequelize.sync().then(function() {
}
server.get('/changelog/:romId', function (req, res, next) {
- models.Rom.find(req.params.romId).then(function(rom) {
+ models.Rom.findById(req.params.romId).then(function(rom) {
if (!rom) {
res.send(404);
return next();
View
@@ -16,7 +16,7 @@
"config": ">= 0.4.x",
"restify": ">= 3.0.x",
"sequelize-cli": ">= 2.0.0",
- "sequelize": ">= 2.0.5"
+ "sequelize": ">= 3.0.0"
},
"optionalDependencies": {

0 comments on commit 9a2027a

Please sign in to comment.