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

Evitando fallos en ranking #307

Merged
merged 12 commits into from
Apr 30, 2024
Merged

Evitando fallos en ranking #307

merged 12 commits into from
Apr 30, 2024

Conversation

Pedro-C-M
Copy link
Contributor

Lo hago así para no tener fallos si está mal

});
let inputBD = datos.user;
if (validarInput(inputBD)) {
Historial.updateOne({ user: inputBD }, { $inc: { "diariasAcertadas": 1 } }).then(resultado => {

Check failure

Code scanning / SonarCloud

NoSQL operations should not be vulnerable to injection attacks High

Change this code to not construct database queries directly from user-controlled data. See more on SonarCloud
Copy link

sonarcloud bot commented Apr 30, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
17 Security Hotspots
76.9% Coverage on New Code (required ≥ 80%)
C Reliability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@bidof bidof merged commit 9c5c9f3 into develop Apr 30, 2024
1 of 3 checks passed
@Pedro-C-M Pedro-C-M linked an issue May 1, 2024 that may be closed by this pull request
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.

Ranking
2 participants