aboutsummaryrefslogtreecommitdiffstats
path: root/internal/chore
diff options
context:
space:
mode:
Diffstat (limited to 'internal/chore')
-rw-r--r--internal/chore/handler.go2
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",
})