Skip to content

Commit

Permalink
fix: missing return statement for instalment number 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Dec 17, 2024
1 parent c33d293 commit 43ef665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/benefit/applications/fixtures/test_applications.json
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,7 @@
"modified_at": "2024-11-04T10:10:12.337Z",
"company": "746afc66-6f5a-4cb4-805f-4b58380b4745",
"status": "accepted",
"talpa_status": "not_sent_to_talpa",
"talpa_status": "rejected_by_talpa",
"application_origin": "applicant",
"application_number": 125000,
"company_name": "Demo I. Haanpää Oy",
Expand Down Expand Up @@ -1647,7 +1647,7 @@
"instalment_number": 1,
"amount": "9600.00",
"due_date": "2024-11-04",
"status": "waiting"
"status": "error_in_talpa"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion backend/benefit/calculator/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ def patch(self, request, instalment_id):
application.archived = True
application.save()
return Response(serializer.data, status=status.HTTP_200_OK)

return Response(serializer.data, status=status.HTTP_200_OK)
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

0 comments on commit 43ef665

Please sign in to comment.