Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: TT-84 not-allow-deleting-customers list
  • Loading branch information
scastillo-jp committed Apr 16, 2021
commit da7ada26ddc8d18c6b5608e39477f5a59d040b97
2 changes: 1 addition & 1 deletion time_tracker_api/customers/customers_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ def put(self, id):
@ns.response(HTTPStatus.NO_CONTENT, 'Customer successfully deleted')
def delete(self, id):
"""Delete a customer"""
customer_dao.update(id, {'status': 'active'})
customer_dao.update(id, {'status': 'inactive'})
return None, HTTPStatus.NO_CONTENT