Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] - Fix 500 error when student user will have an attempt #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Mjdelima20
Copy link
Collaborator

Asana

[Commands]

  • docker-compose up

[Pre-conditions]

  1. Login as student
  2. Add this endpoint /api/student/category/{category_id}/done
  3. Set request to POST
  4. Click Body
  5. Set the body to raw and JSON
  6. input this text : {"isDone": true}
  7. Click Send

[Expected Output]

  • Attempt should be recorded

[Screenshots]

image

@@ -44,16 +43,10 @@ export class AttemptsController {
where: { user_id },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you share a brief overview of what the 'attempts' service is and what 'isDone' means?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@escbooster12-dev

  • attempts service sir is the responsible for saving the attempt of the user and the user's taken category.
  • For the isDone , I created that one since it is a post request and needed a body that is why is used isDone boolean to identify the current user what category did he take

Copy link
Collaborator

@escbooster12-dev escbooster12-dev left a comment

Choose a reason for hiding this comment

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

pls check

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