aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/schedule-video-update.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/schedule-video-update.ts')
-rw-r--r--server/models/video/schedule-video-update.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/models/video/schedule-video-update.ts b/server/models/video/schedule-video-update.ts
index 3cf5f6c99..1e56562e1 100644
--- a/server/models/video/schedule-video-update.ts
+++ b/server/models/video/schedule-video-update.ts
@@ -83,6 +83,17 @@ export class ScheduleVideoUpdateModel extends Model<ScheduleVideoUpdateModel> {
83 return ScheduleVideoUpdateModel.findAll(query) 83 return ScheduleVideoUpdateModel.findAll(query)
84 } 84 }
85 85
86 static deleteByVideoId (videoId: number, t: Transaction) {
87 const query = {
88 where: {
89 videoId
90 },
91 transaction: t
92 }
93
94 return ScheduleVideoUpdateModel.destroy(query)
95 }
96
86 toFormattedJSON () { 97 toFormattedJSON () {
87 return { 98 return {
88 updateAt: this.updateAt, 99 updateAt: this.updateAt,