diff options
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/author.js | 1 | ||||
-rw-r--r-- | lib/models/index.js | 1 | ||||
-rw-r--r-- | lib/models/note.js | 3 | ||||
-rw-r--r-- | lib/models/revision.js | 1 | ||||
-rw-r--r-- | lib/models/temp.js | 1 | ||||
-rw-r--r-- | lib/models/user.js | 1 |
6 files changed, 7 insertions, 1 deletions
diff --git a/lib/models/author.js b/lib/models/author.js index 5e39c347..8b4f74e5 100644 --- a/lib/models/author.js +++ b/lib/models/author.js @@ -1,3 +1,4 @@ +'use strict' // external modules var Sequelize = require('sequelize') diff --git a/lib/models/index.js b/lib/models/index.js index 96babc2a..a378ee67 100644 --- a/lib/models/index.js +++ b/lib/models/index.js @@ -1,3 +1,4 @@ +'use strict' // external modules var fs = require('fs') var path = require('path') diff --git a/lib/models/note.js b/lib/models/note.js index bef9ee21..f7c25bde 100644 --- a/lib/models/note.js +++ b/lib/models/note.js @@ -1,3 +1,4 @@ +'use strict' // external modules var fs = require('fs') var path = require('path') @@ -153,7 +154,7 @@ module.exports = function (sequelize, DataTypes) { authorship = Note.updateAuthorshipByOperation(operations[i], null, authorship) } note.update({ - authorship: JSON.stringify(authorship) + authorship: authorship }).then(function (note) { return callback(null, note.id) }).catch(function (err) { diff --git a/lib/models/revision.js b/lib/models/revision.js index d8dab30a..581e7ea5 100644 --- a/lib/models/revision.js +++ b/lib/models/revision.js @@ -1,3 +1,4 @@ +'use strict' // external modules var Sequelize = require('sequelize') var async = require('async') diff --git a/lib/models/temp.js b/lib/models/temp.js index e770bb3a..2ad23fb5 100644 --- a/lib/models/temp.js +++ b/lib/models/temp.js @@ -1,3 +1,4 @@ +'use strict' // external modules var shortId = require('shortid') diff --git a/lib/models/user.js b/lib/models/user.js index f7e533b7..042b0d2f 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -1,3 +1,4 @@ +'use strict' // external modules var md5 = require('blueimp-md5') var Sequelize = require('sequelize') |