Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix : Number settings gets saved as strings in MongoDB #444

Merged
merged 10 commits into from
Dec 17, 2024

Conversation

abdou6666
Copy link
Member

Motivation

This PR fixes the issue when updating a setting field that should be saved as Number and saved as String in MongoDB because mongoose middleware/hooks does not run by default on findOneAndUpdate

Fixes #427

Type of change:

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@abdou6666 abdou6666 changed the title Fix/settings saved db string Fix : Number settings gets saved as strings in MongoDB Dec 15, 2024
@marrouchi marrouchi merged commit f83a459 into main Dec 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🤔 [ISSUE] - Settings of type number get stored as string
3 participants