diff options
Diffstat (limited to 'server/models/video/video-blacklist.ts')
-rw-r--r-- | server/models/video/video-blacklist.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/server/models/video/video-blacklist.ts b/server/models/video/video-blacklist.ts index 1c279b1ba..ae8286285 100644 --- a/server/models/video/video-blacklist.ts +++ b/server/models/video/video-blacklist.ts | |||
@@ -12,10 +12,7 @@ import { | |||
12 | 12 | ||
13 | let BlacklistedVideo: Sequelize.Model<BlacklistedVideoInstance, BlacklistedVideoAttributes> | 13 | let BlacklistedVideo: Sequelize.Model<BlacklistedVideoInstance, BlacklistedVideoAttributes> |
14 | let toFormattedJSON: BlacklistedVideoMethods.ToFormattedJSON | 14 | let toFormattedJSON: BlacklistedVideoMethods.ToFormattedJSON |
15 | let countTotal: BlacklistedVideoMethods.CountTotal | ||
16 | let list: BlacklistedVideoMethods.List | ||
17 | let listForApi: BlacklistedVideoMethods.ListForApi | 15 | let listForApi: BlacklistedVideoMethods.ListForApi |
18 | let loadById: BlacklistedVideoMethods.LoadById | ||
19 | let loadByVideoId: BlacklistedVideoMethods.LoadByVideoId | 16 | let loadByVideoId: BlacklistedVideoMethods.LoadByVideoId |
20 | 17 | ||
21 | export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) { | 18 | export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) { |
@@ -34,10 +31,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da | |||
34 | const classMethods = [ | 31 | const classMethods = [ |
35 | associate, | 32 | associate, |
36 | 33 | ||
37 | countTotal, | ||
38 | list, | ||
39 | listForApi, | 34 | listForApi, |
40 | loadById, | ||
41 | loadByVideoId | 35 | loadByVideoId |
42 | ] | 36 | ] |
43 | const instanceMethods = [ | 37 | const instanceMethods = [ |
@@ -83,14 +77,6 @@ function associate (models) { | |||
83 | }) | 77 | }) |
84 | } | 78 | } |
85 | 79 | ||
86 | countTotal = function () { | ||
87 | return BlacklistedVideo.count() | ||
88 | } | ||
89 | |||
90 | list = function () { | ||
91 | return BlacklistedVideo.findAll() | ||
92 | } | ||
93 | |||
94 | listForApi = function (start: number, count: number, sort: SortType) { | 80 | listForApi = function (start: number, count: number, sort: SortType) { |
95 | const query = { | 81 | const query = { |
96 | offset: start, | 82 | offset: start, |
@@ -107,10 +93,6 @@ listForApi = function (start: number, count: number, sort: SortType) { | |||
107 | }) | 93 | }) |
108 | } | 94 | } |
109 | 95 | ||
110 | loadById = function (id: number) { | ||
111 | return BlacklistedVideo.findById(id) | ||
112 | } | ||
113 | |||
114 | loadByVideoId = function (id: number) { | 96 | loadByVideoId = function (id: number) { |
115 | const query = { | 97 | const query = { |
116 | where: { | 98 | where: { |