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
+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({