Skip to content

Commit

Permalink
Update child_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g authored Nov 3, 2023
1 parent e45131f commit 29ff702
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions say/api/child_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,11 +947,8 @@ def patch(self, child_id):
if family:
family.isDeleted = True

if child.social_worker.currentChildCount:
child.social_worker.currentChildCount -= 1

if child.ngo.currentChildrenCount:
child.ngo.currentChildrenCount -= 1
child.social_worker.currentChildCount -= 1
child.ngo.currentChildrenCount -= 1

safe_commit(session)

Expand Down

0 comments on commit 29ff702

Please sign in to comment.