aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/author.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/author.js')
-rw-r--r--server/models/author.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/author.js b/server/models/author.js
index f036193c8..34b013097 100644
--- a/server/models/author.js
+++ b/server/models/author.js
@@ -84,7 +84,9 @@ function findOrCreateAuthor (name, podId, userId, transaction, callback) {
84 if (transaction) query.transaction = transaction 84 if (transaction) query.transaction = transaction
85 85
86 this.findOrCreate(query).asCallback(function (err, result) { 86 this.findOrCreate(query).asCallback(function (err, result) {
87 if (err) return callback(err)
88
87 // [ instance, wasCreated ] 89 // [ instance, wasCreated ]
88 return callback(err, result[0]) 90 return callback(null, result[0])
89 }) 91 })
90} 92}