Skip to content

Commit 8aa5c03

Browse files
committed
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>
1 parent 41a36e2 commit 8aa5c03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/models/note.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module.exports = function (sequelize, DataTypes) {
8585
type: DataTypes.DATE
8686
}
8787
}, {
88-
paranoid: true,
88+
paranoid: false,
8989
classMethods: {
9090
associate: function (models) {
9191
Note.belongsTo(models.User, {

0 commit comments

Comments
 (0)