aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/users.js2
-rw-r--r--server/models/videos.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/server/models/users.js b/server/models/users.js
index 367c206ab..046fe462d 100644
--- a/server/models/users.js
+++ b/server/models/users.js
@@ -104,7 +104,7 @@ function saveToken (token, client, user) {
104 } 104 }
105 105
106 return OAuthTokensDB.create(token_to_create, function (err, token_created) { 106 return OAuthTokensDB.create(token_to_create, function (err, token_created) {
107 if (err) throw err // node-oauth2-server library use Promise.try 107 if (err) throw err // node-oauth2-server library uses Promise.try
108 108
109 token_created.client = client 109 token_created.client = client
110 token_created.user = user 110 token_created.user = user
diff --git a/server/models/videos.js b/server/models/videos.js
index 0141cbb7f..13ef2295a 100644
--- a/server/models/videos.js
+++ b/server/models/videos.js
@@ -21,7 +21,8 @@ const videosSchema = mongoose.Schema({
21 namePath: String, 21 namePath: String,
22 description: String, 22 description: String,
23 magnetUri: String, 23 magnetUri: String,
24 podUrl: String 24 podUrl: String,
25 author: String
25}) 26})
26const VideosDB = mongoose.model('videos', videosSchema) 27const VideosDB = mongoose.model('videos', videosSchema)
27 28