Cascade notification setting deletion on user account deletion
This commit is contained in:
@ -52,6 +52,7 @@ NotificationSetting.associate = models => {
|
||||
NotificationSetting.belongsTo(models.User, {
|
||||
as: 'user',
|
||||
foreignKey: 'userId',
|
||||
onDelete: 'cascade',
|
||||
});
|
||||
NotificationSetting.belongsTo(models.Team, {
|
||||
as: 'team',
|
||||
|
Reference in New Issue
Block a user