Morphclue / apollusia

Calendar tool for coordinating meetings
http://apollusia.com
MIT License
7 stars 2 forks source link

Fix unknown change events #162

Closed Morphclue closed 5 months ago

Morphclue commented 5 months ago

Context

Last time I moved some dates, I've noticed that they don't get updated anymore into an unknown state. According to the usage of the $unset doc from MongoDB they use { $unset: { quantity: "", instock: "" } } with an empty string. Even if the specific declaration of the value is not necessary, I have used it as a guide.

Furthermore I've noticed that event inside the filter was of type string. Therefore a correct comparison wasn't possible.