fixing minor startup issues

This commit is contained in:
Christian Müller
2015-10-23 20:26:06 +02:00
parent 899d7a2f9d
commit 6fc7ff0c87
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -30,5 +30,8 @@
"md5": "^2.0.0",
"sequelize": "^3.8.0",
"sqlite3": "^3.1.0"
},
"devDependencies": {
"nodemon": "^1.7.3"
}
}
+2
View File
@@ -19,6 +19,8 @@ var Note = sequelize.define('Note', {
views: { type: Sequelize.INTEGER, defaultValue: 0 }
});
sequelize.sync();
module.exports.getNote = id => Note.findById(id);
module.exports.getNoteId = deprecatedId => Note.findOne({