diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-23 17:36:15 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | 39445ead45aaaea801ec09991b8dd2464f722e47 (patch) | |
tree | 9306c6b89115dabdd4a7c31a59784134a0e1c804 /server/models/video/video-channel.ts | |
parent | 16b90975941b78d01d7202d441bf731a10048c16 (diff) | |
download | PeerTube-39445ead45aaaea801ec09991b8dd2464f722e47.tar.gz PeerTube-39445ead45aaaea801ec09991b8dd2464f722e47.tar.zst PeerTube-39445ead45aaaea801ec09991b8dd2464f722e47.zip |
Cleanup models
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index 93566a5c6..64130310d 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -12,7 +12,6 @@ let toFormattedJSON: VideoChannelMethods.ToFormattedJSON | |||
12 | let toActivityPubObject: VideoChannelMethods.ToActivityPubObject | 12 | let toActivityPubObject: VideoChannelMethods.ToActivityPubObject |
13 | let isOwned: VideoChannelMethods.IsOwned | 13 | let isOwned: VideoChannelMethods.IsOwned |
14 | let countByAccount: VideoChannelMethods.CountByAccount | 14 | let countByAccount: VideoChannelMethods.CountByAccount |
15 | let listOwned: VideoChannelMethods.ListOwned | ||
16 | let listForApi: VideoChannelMethods.ListForApi | 15 | let listForApi: VideoChannelMethods.ListForApi |
17 | let listByAccount: VideoChannelMethods.ListByAccount | 16 | let listByAccount: VideoChannelMethods.ListByAccount |
18 | let loadByIdAndAccount: VideoChannelMethods.LoadByIdAndAccount | 17 | let loadByIdAndAccount: VideoChannelMethods.LoadByIdAndAccount |
@@ -88,7 +87,6 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da | |||
88 | 87 | ||
89 | listForApi, | 88 | listForApi, |
90 | listByAccount, | 89 | listByAccount, |
91 | listOwned, | ||
92 | loadByIdAndAccount, | 90 | loadByIdAndAccount, |
93 | loadAndPopulateAccount, | 91 | loadAndPopulateAccount, |
94 | loadByUUIDAndPopulateAccount, | 92 | loadByUUIDAndPopulateAccount, |
@@ -192,17 +190,6 @@ countByAccount = function (accountId: number) { | |||
192 | return VideoChannel.count(query) | 190 | return VideoChannel.count(query) |
193 | } | 191 | } |
194 | 192 | ||
195 | listOwned = function () { | ||
196 | const query = { | ||
197 | where: { | ||
198 | remote: false | ||
199 | }, | ||
200 | include: [ VideoChannel['sequelize'].models.Account ] | ||
201 | } | ||
202 | |||
203 | return VideoChannel.findAll(query) | ||
204 | } | ||
205 | |||
206 | listForApi = function (start: number, count: number, sort: string) { | 193 | listForApi = function (start: number, count: number, sort: string) { |
207 | const query = { | 194 | const query = { |
208 | offset: start, | 195 | offset: start, |