diff options
author | Sheogorath | 2018-05-25 14:50:31 +0200 |
---|---|---|
committer | Sheogorath | 2018-05-25 14:50:37 +0200 |
commit | 8aa5c03213fb8809c4d41f95ee6b8d8e2967812a (patch) | |
tree | b492105674b97b0234100ccf6256d61bbfdee177 | |
parent | 41a36e2e1877b4a2ab6751c011e80582f8ccbcf2 (diff) |
Use hard delete instead of soft delete
Right now we only flag notes as deleted. This is no longer allowed under
GDPR. Make sure you do regular backups!
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r-- | lib/models/note.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/note.js b/lib/models/note.js index 2a048e37..7b9a909a 100644 --- a/lib/models/note.js +++ b/lib/models/note.js @@ -85,7 +85,7 @@ module.exports = function (sequelize, DataTypes) { type: DataTypes.DATE } }, { - paranoid: true, + paranoid: false, classMethods: { associate: function (models) { Note.belongsTo(models.User, { |