I have really strange issue…
I’m calling my remove method
Meteor.methods({
['sections.remove']({_id, ...section}) {
console.log(_id, section); // outputs => t8fdS2WfqRkXgsbtk Object
return Sections.remove({_id: _id}, (...args) => {
console.log(args); // outputs => [null, 1]
});
}})
It seems to be ok in the callback on server and client
However, after removal
meteor:PRIMARY> db.sections.find({})
{ "_id" : "t8fdS2WfqRkXgsbtk", "component_id" : "KZQsYAPAQncmiPjgD", "contentItems_ids" : [ [ "3ZJRWiPj4K6Shrtok", "QbfAdAq32WaZWRYhf" ], [ "hmAHMbA73f3rZ4nNq", "4QvKBJk2RCC2WkBxk" ] ], "order" : 1, "primaryItem_id" : "E7KmbjkZvDPxoE9gT", "published" : true, "titleItem_id" : "hgoEYZ4nAZrzyKrLS" }