exoplatform / chat-application

Chat application
GNU Affero General Public License v3.0
38 stars 57 forks source link

fix: error when retrieving chat settings - EXO-64706 #620

Closed ahamdi closed 1 year ago

ahamdi commented 1 year ago

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.

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

50.0% 50.0% Coverage
0.0% 0.0% Duplication