Skip to content

Commit

Permalink
feat: syncs across document deletions
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed Mar 22, 2023
1 parent 48f7685 commit 0e79f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/models/plugins/mongoMeili.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ module.exports = function mongoMeili(schema, options) {
schema.post('remove', function (doc) {
doc.postRemoveHook();
});
schema.post('deleteMany', function (doc) {
schema.post('deleteMany', function () {
// console.log('deleteMany hook', doc);
if (Object.prototype.hasOwnProperty.call(schema.obj, 'messages')) {
console.log('Syncing convos...');
Expand Down

0 comments on commit 0e79f7b

Please sign in to comment.