Skip to content

Commit

Permalink
Merge pull request #70 from Gurubase/develop
Browse files Browse the repository at this point in the history
Update log
  • Loading branch information
fatihbaltaci authored Feb 3, 2025
2 parents c662df0 + 79c0b1b commit a79cf54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gurubase-backend/backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1596,10 +1596,10 @@ def api_answer(request, guru_type):
try:
binge = Binge.objects.get(id=binge_id)
except Exception:
return response_handler.handle_error_response("Session not found")
return response_handler.handle_error_response("Session not found. Code: S-900")

if not check_binge_auth(binge, user):
return response_handler.handle_error_response("Session not found")
return response_handler.handle_error_response("Session not found. Code: S-901")

# Find the last question in the binge as the parent
parent = Question.objects.filter(binge=binge).order_by('-date_updated').first()
Expand Down

0 comments on commit a79cf54

Please sign in to comment.