After upgrading the MongoDB version, teh toString function of a document does not return the JSON representation, thus it fails to be parsed to a JSON object. This caused errors when retrieving the chat settings of notifications for users.
The fix will convert the embedded object to a Document and retrieve the JSON representation.
After upgrading the MongoDB version, teh toString function of a document does not return the JSON representation, thus it fails to be parsed to a JSON object. This caused errors when retrieving the chat settings of notifications for users. The fix will convert the embedded object to a Document and retrieve the JSON representation.