Skip to content

Commit

Permalink
Merge pull request #1480 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
fix(lc):exist typo fix
  • Loading branch information
Aashish Vinu authored Oct 30, 2023
2 parents c6059b2 + 6d6e2ae commit 07e4e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/dashboard/lc/dash_lc_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def patch(self, request, circle_id, lead_id):
class LearningCircleHomeApi(APIView):
def get(self, request, circle_id):
user_id = JWTUtils.fetch_user_id(request)
if not LearningCircle.objects.filter(id=circle_id).exist():
return CustomResponse(general_message='Invalid learning circle').get_failure_response()
if not LearningCircle.objects.filter(id=circle_id).exists():
return CustomResponse(general_message='Learning Circle not found').get_failure_response()
learning_circle = LearningCircle.objects.filter(id=circle_id).first()
serializer = LearningCircleHomeSerializer(learning_circle, many=False, context={ "user_id": user_id })
return CustomResponse(response=serializer.data).get_success_response()
Expand Down

0 comments on commit 07e4e43

Please sign in to comment.