Dissociate chore with thing in deleteChore function

This commit is contained in:
Mo Tarbin 2024-07-02 01:39:46 -04:00
parent 17326a16a0
commit e40c2a84cd
2 changed files with 6 additions and 0 deletions

View file

@ -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",
})