Closed aeksco closed 6 years ago
Import the handleError function from helpers.js into achievement.controller.js and delete the handleError function defined there.
handleError
helpers.js
achievement.controller.js
Replace the following statements to ensure proper functionality. Replace this:
.catch(handleError(res));
With this:
.catch((err) => handleError(res, err));
Resolved
Import the
handleError
function fromhelpers.js
intoachievement.controller.js
and delete thehandleError
function defined there.Replace the following statements to ensure proper functionality. Replace this:
With this: