make thing a pointer on chore
This commit is contained in:
parent
6845fd54f1
commit
f115d70c49
2 changed files with 21 additions and 21 deletions
|
@ -488,7 +488,7 @@ func (h *Handler) editChore(c *gin.Context) {
|
|||
go func() {
|
||||
h.nPlanner.GenerateNotifications(c, updatedChore)
|
||||
}()
|
||||
if oldChore.ThingChore.ThingID != 0 {
|
||||
if oldChore.ThingChore != nil {
|
||||
// TODO: Add check to see if dissociation is necessary
|
||||
h.tRepo.DissociateThingWithChore(c, oldChore.ThingChore.ThingID, oldChore.ID)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue