diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-15 11:00:25 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 608624252466acf9f1d9ee1c1170bd4fe4d18d18 (patch) | |
tree | 47eab55bb5421b7fe88e0b2ac743a436fd9561cf /server/models/video/video-channel.ts | |
parent | 51548b31815c6f96f314ae96588a9adca150519d (diff) | |
download | PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.gz PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.zst PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.zip |
Rename Pod -> Server
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 6d70f2aa2..3cb4a33b9 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -218,7 +218,7 @@ listForApi = function (start: number, count: number, sort: string) { | |||
218 | { | 218 | { |
219 | model: VideoChannel['sequelize'].models.Account, | 219 | model: VideoChannel['sequelize'].models.Account, |
220 | required: true, | 220 | required: true, |
221 | include: [ { model: VideoChannel['sequelize'].models.Pod, required: false } ] | 221 | include: [ { model: VideoChannel['sequelize'].models.Server, required: false } ] |
222 | } | 222 | } |
223 | ] | 223 | ] |
224 | } | 224 | } |
@@ -238,7 +238,7 @@ listByAccount = function (accountId: number) { | |||
238 | id: accountId | 238 | id: accountId |
239 | }, | 239 | }, |
240 | required: true, | 240 | required: true, |
241 | include: [ { model: VideoChannel['sequelize'].models.Pod, required: false } ] | 241 | include: [ { model: VideoChannel['sequelize'].models.Server, required: false } ] |
242 | } | 242 | } |
243 | ] | 243 | ] |
244 | } | 244 | } |
@@ -297,7 +297,7 @@ loadByHostAndUUID = function (fromHost: string, uuid: string, t?: Sequelize.Tran | |||
297 | model: VideoChannel['sequelize'].models.Account, | 297 | model: VideoChannel['sequelize'].models.Account, |
298 | include: [ | 298 | include: [ |
299 | { | 299 | { |
300 | model: VideoChannel['sequelize'].models.Pod, | 300 | model: VideoChannel['sequelize'].models.Server, |
301 | required: true, | 301 | required: true, |
302 | where: { | 302 | where: { |
303 | host: fromHost | 303 | host: fromHost |
@@ -322,7 +322,7 @@ loadByIdAndAccount = function (id: number, accountId: number) { | |||
322 | include: [ | 322 | include: [ |
323 | { | 323 | { |
324 | model: VideoChannel['sequelize'].models.Account, | 324 | model: VideoChannel['sequelize'].models.Account, |
325 | include: [ { model: VideoChannel['sequelize'].models.Pod, required: false } ] | 325 | include: [ { model: VideoChannel['sequelize'].models.Server, required: false } ] |
326 | } | 326 | } |
327 | ] | 327 | ] |
328 | } | 328 | } |
@@ -335,7 +335,7 @@ loadAndPopulateAccount = function (id: number) { | |||
335 | include: [ | 335 | include: [ |
336 | { | 336 | { |
337 | model: VideoChannel['sequelize'].models.Account, | 337 | model: VideoChannel['sequelize'].models.Account, |
338 | include: [ { model: VideoChannel['sequelize'].models.Pod, required: false } ] | 338 | include: [ { model: VideoChannel['sequelize'].models.Server, required: false } ] |
339 | } | 339 | } |
340 | ] | 340 | ] |
341 | } | 341 | } |
@@ -351,7 +351,7 @@ loadByUUIDAndPopulateAccount = function (uuid: string) { | |||
351 | include: [ | 351 | include: [ |
352 | { | 352 | { |
353 | model: VideoChannel['sequelize'].models.Account, | 353 | model: VideoChannel['sequelize'].models.Account, |
354 | include: [ { model: VideoChannel['sequelize'].models.Pod, required: false } ] | 354 | include: [ { model: VideoChannel['sequelize'].models.Server, required: false } ] |
355 | } | 355 | } |
356 | ] | 356 | ] |
357 | } | 357 | } |
@@ -364,7 +364,7 @@ loadAndPopulateAccountAndVideos = function (id: number) { | |||
364 | include: [ | 364 | include: [ |
365 | { | 365 | { |
366 | model: VideoChannel['sequelize'].models.Account, | 366 | model: VideoChannel['sequelize'].models.Account, |
367 | include: [ { model: VideoChannel['sequelize'].models.Pod, required: false } ] | 367 | include: [ { model: VideoChannel['sequelize'].models.Server, required: false } ] |
368 | }, | 368 | }, |
369 | VideoChannel['sequelize'].models.Video | 369 | VideoChannel['sequelize'].models.Video |
370 | ] | 370 | ] |