Skip to content

Gslmao/seperate logic#443

Merged
abhitrueprogrammer merged 4 commits intoCodeChefVIT:stagingfrom
Gslmao-s-Org:Gslmao/seperate-logic
Feb 26, 2026
Merged

Gslmao/seperate logic#443
abhitrueprogrammer merged 4 commits intoCodeChefVIT:stagingfrom
Gslmao-s-Org:Gslmao/seperate-logic

Conversation

@Gslmao
Copy link
Contributor

@Gslmao Gslmao commented Feb 15, 2026

📌 Purpose

This PR refactors 4 API Endpoints
course-list/
paper-by-id/
paper/count
report-tag/

🔧 Changes

  • Refactored the endpoints listed above
  • Implemented CustomError class and customErrorHandler to catch errors in the service logic (used only in report-tag/ for now)
  • Indentation and Black line queries were fixed to address the issues in PR#438 - Feature/seperate logic #438

➕ Additional Notes

"@/components/ReportTagModal' line 231
The error message always fell back to "err.message" instead of "err.response.data.error", since the error handler which was implemented sent back the error message as "err.response.data.message", instead of "err.response.data.error", so that was tweaked to comply with the backend.

@abhitrueprogrammer
Copy link
Collaborator

yeah this looks good only uwu

@abhitrueprogrammer abhitrueprogrammer merged commit b753581 into CodeChefVIT:staging Feb 26, 2026
1 check passed
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.

2 participants