aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/author.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-18 09:29:59 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-18 09:29:59 +0100
commitad4a8a1cca1049f600ebcdce9260c1021cd821a5 (patch)
treeca8ffba899b024d56d1bd7846f61aecae0821c82 /server/models/author.js
parent5d67f289df4a68e35ad7e0af3c601c7db0dc7586 (diff)
downloadPeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.tar.gz
PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.tar.zst
PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.zip
Add email to users
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}