diff options
author | Julien Maulny <julien.maulny@protonmail.com> | 2019-11-15 19:05:08 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-12-04 09:36:45 +0100 |
commit | 69222afac8f8c41d90295b33f0695bbff352851e (patch) | |
tree | 63fe1faea94dd3bfc54e633631eecb275c969e54 /server/models/account | |
parent | 69c7f7525ddf13b7ced787d8b72ac74b43665517 (diff) | |
download | PeerTube-69222afac8f8c41d90295b33f0695bbff352851e.tar.gz PeerTube-69222afac8f8c41d90295b33f0695bbff352851e.tar.zst PeerTube-69222afac8f8c41d90295b33f0695bbff352851e.zip |
Soft delete video comments instead of detroy
Diffstat (limited to 'server/models/account')
-rw-r--r-- | server/models/account/account.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/account/account.ts b/server/models/account/account.ts index ba1094536..a818a5a4d 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts | |||
@@ -201,7 +201,7 @@ export class AccountModel extends Model<AccountModel> { | |||
201 | 201 | ||
202 | @HasMany(() => VideoCommentModel, { | 202 | @HasMany(() => VideoCommentModel, { |
203 | foreignKey: { | 203 | foreignKey: { |
204 | allowNull: false | 204 | allowNull: true |
205 | }, | 205 | }, |
206 | onDelete: 'cascade', | 206 | onDelete: 'cascade', |
207 | hooks: true | 207 | hooks: true |