Dissociate chore with thing in deleteChore function
This commit is contained in:
parent
17326a16a0
commit
e40c2a84cd
2 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue