aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video.js b/server/models/video.js
index 14fbe2f71..f51d08f06 100644
--- a/server/models/video.js
+++ b/server/models/video.js
@@ -111,10 +111,10 @@ module.exports = function (sequelize, DataTypes) {
111 getDurationFromFile, 111 getDurationFromFile,
112 list, 112 list,
113 listForApi, 113 listForApi,
114 listByHostAndRemoteId,
115 listOwnedAndPopulateAuthorAndTags, 114 listOwnedAndPopulateAuthorAndTags,
116 listOwnedByAuthor, 115 listOwnedByAuthor,
117 load, 116 load,
117 loadByHostAndRemoteId,
118 loadAndPopulateAuthor, 118 loadAndPopulateAuthor,
119 loadAndPopulateAuthorAndPodAndTags, 119 loadAndPopulateAuthorAndPodAndTags,
120 searchAndPopulateAuthorAndPodAndTags 120 searchAndPopulateAuthorAndPodAndTags
@@ -428,7 +428,7 @@ function listForApi (start, count, sort, callback) {
428 }) 428 })
429} 429}
430 430
431function listByHostAndRemoteId (fromHost, remoteId, callback) { 431function loadByHostAndRemoteId (fromHost, remoteId, callback) {
432 const query = { 432 const query = {
433 where: { 433 where: {
434 remoteId: remoteId 434 remoteId: remoteId
@@ -449,7 +449,7 @@ function listByHostAndRemoteId (fromHost, remoteId, callback) {
449 ] 449 ]
450 } 450 }
451 451
452 return this.findAll(query).asCallback(callback) 452 return this.findOne(query).asCallback(callback)
453} 453}
454 454
455function listOwnedAndPopulateAuthorAndTags (callback) { 455function listOwnedAndPopulateAuthorAndTags (callback) {