Skip to content

fix: add error handling for ObjectId conversion to prevent 500 errors

e225073
Select commit
Loading
Failed to load commit list.
Open

Yu Yan - Take over PR #1748 - fix: Removed userId of deleted users from task->resources and teams->members #2149

fix: add error handling for ObjectId conversion to prevent 500 errors
e225073
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 3, 2026 in 22m 46s

Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

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

Annotations

Check warning on line 1440 in src/controllers/userProfileController.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=OneCommunityGlobal_HGNRest&issues=AZ1RZQ0qHkM_Q1xd4d4g&open=AZ1RZQ0qHkM_Q1xd4d4g&pullRequest=2149