diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-02 15:32:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-29 10:16:57 +0200 |
commit | 318aa9c42250c38c845f007a83ee84a0884436c1 (patch) | |
tree | 199f4057a3665f0037f42f780f0eff23c7699245 /server/models | |
parent | 9c5cc501335b9f7dba4aa492b8fda68d4881d28d (diff) | |
download | PeerTube-318aa9c42250c38c845f007a83ee84a0884436c1.tar.gz PeerTube-318aa9c42250c38c845f007a83ee84a0884436c1.tar.zst PeerTube-318aa9c42250c38c845f007a83ee84a0884436c1.zip |
Delete storyboard file on video deletion
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 0e9a84426..fd56d2423 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -762,7 +762,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> { | |||
762 | name: 'videoId', | 762 | name: 'videoId', |
763 | allowNull: false | 763 | allowNull: false |
764 | }, | 764 | }, |
765 | onDelete: 'cascade' | 765 | onDelete: 'cascade', |
766 | hooks: true | ||
766 | }) | 767 | }) |
767 | Storyboard: StoryboardModel | 768 | Storyboard: StoryboardModel |
768 | 769 | ||