Skip to content

Commit

Permalink
Merge pull request #101 from GitVivekHub/newLessonTrackApiNew
Browse files Browse the repository at this point in the history
[BE] Task 0004 Error response message for module not found added
  • Loading branch information
ankush-maherwal authored Dec 20, 2024
2 parents b4c9307 + 731e73c commit e7139a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/adapters/hasura/altLessonTracking.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,11 @@ export class ALTLessonTrackingService {
courseId,
});
if (checkLessonExist instanceof ErrorResponse) {
return checkLessonExist; // Return the error directly
return response.status(422).json({
// Return the error directly
errorCode: "422",
errorMessage: checkLessonExist,
});
}

const moduleId = checkLessonExist.data;
Expand Down

0 comments on commit e7139a7

Please sign in to comment.