diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-26 09:25:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-26 09:25:21 +0200 |
commit | 93fd6f3b18e1c0009ff6ca9208966ae36af5dafa (patch) | |
tree | c7788fb4ecd190a4ce78bf4f4e6c91b742b2b6f4 /server/models/video | |
parent | 89b9eab5a72fd805325a98ae613c3f0f00ab0250 (diff) | |
download | PeerTube-93fd6f3b18e1c0009ff6ca9208966ae36af5dafa.tar.gz PeerTube-93fd6f3b18e1c0009ff6ca9208966ae36af5dafa.tar.zst PeerTube-93fd6f3b18e1c0009ff6ca9208966ae36af5dafa.zip |
Fix fk error when generating storyboard
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/storyboard.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/storyboard.ts b/server/models/video/storyboard.ts index 65a044c98..1c3c6d850 100644 --- a/server/models/video/storyboard.ts +++ b/server/models/video/storyboard.ts | |||
@@ -59,7 +59,7 @@ export class StoryboardModel extends Model<Partial<AttributesOnly<StoryboardMode | |||
59 | 59 | ||
60 | @BelongsTo(() => VideoModel, { | 60 | @BelongsTo(() => VideoModel, { |
61 | foreignKey: { | 61 | foreignKey: { |
62 | allowNull: true | 62 | allowNull: false |
63 | }, | 63 | }, |
64 | onDelete: 'CASCADE' | 64 | onDelete: 'CASCADE' |
65 | }) | 65 | }) |