Skip to content

Conversation

@PlayJeri
Copy link
Member

Brief description

On any error the endpoint was always returning a 500 unexpected error since the updateTask return data on error was [null, [ServiceErrors]] and the desctructuring with const [[status, task], errors] threw an error since you can't destructure null as an array.

Change list

  • Moved the data destructuring after the error check.

Copy link
Contributor

@jkrizsan jkrizsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job

@github-project-automation github-project-automation bot moved this from Backlog to Done in Altzone-Server Sep 10, 2025
@PlayJeri PlayJeri merged commit 66e62d3 into dev Sep 11, 2025
@PlayJeri PlayJeri deleted the bug/fix-error-handling-in-updateUIDailyTask branch September 11, 2025 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants