Added paranoid, debugging and fixes to document deleting on atlas collections
This commit is contained in:
@@ -58,6 +58,7 @@ const Document = sequelize.define('document', {
|
||||
},
|
||||
},
|
||||
}, {
|
||||
paranoid: true,
|
||||
hooks: {
|
||||
beforeValidate: (doc) => {
|
||||
doc.urlId = randomstring.generate(15);
|
||||
|
||||
Reference in New Issue
Block a user