diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-30 11:27:42 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-30 11:27:42 +0100 |
commit | 3d118fb501f576a298f6bb059167e4c7f4dd8dcc (patch) | |
tree | f2c8e74e1ca9a9d39b86412a6444a95343d2833e /server/models | |
parent | 7b1f49de22c40ae121ddb3c399b2540ba56fd414 (diff) | |
download | PeerTube-3d118fb501f576a298f6bb059167e4c7f4dd8dcc.tar.gz PeerTube-3d118fb501f576a298f6bb059167e4c7f4dd8dcc.tar.zst PeerTube-3d118fb501f576a298f6bb059167e4c7f4dd8dcc.zip |
Server: propagate video update to other pods
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video.js | 6 |
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 | ||
431 | function listByHostAndRemoteId (fromHost, remoteId, callback) { | 431 | function 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 | ||
455 | function listOwnedAndPopulateAuthorAndTags (callback) { | 455 | function listOwnedAndPopulateAuthorAndTags (callback) { |