diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-02 01:39:46 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-02 01:39:46 -0400 |
commit | e40c2a84cd93683aa7e4d98d4ada7923e32a3e33 (patch) | |
tree | 8c9e68426c73ef9646e26b837e1115a857fe6482 /internal/chore | |
parent | 17326a16a018ae84d274be53b52be9273ef69932 (diff) | |
download | donetick-e40c2a84cd93683aa7e4d98d4ada7923e32a3e33.tar.gz donetick-e40c2a84cd93683aa7e4d98d4ada7923e32a3e33.tar.bz2 donetick-e40c2a84cd93683aa7e4d98d4ada7923e32a3e33.zip |
Dissociate chore with thing in deleteChore function
Diffstat (limited to 'internal/chore')
-rw-r--r-- | internal/chore/handler.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/chore/handler.go b/internal/chore/handler.go index 3d9f9e7..919e838 100644 --- a/internal/chore/handler.go +++ b/internal/chore/handler.go @@ -562,6 +562,8 @@ func (h *Handler) deleteChore(c *gin.Context) { return } h.nRepo.DeleteAllChoreNotifications(id) + h.tRepo.DissociateChoreWithThing(c, id) + c.JSON(200, gin.H{ "message": "Chore deleted successfully", }) |