aboutsummaryrefslogtreecommitdiffstats
path: root/internal/chore/handler.go
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-05 00:34:35 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-05 00:34:35 -0400
commitf115d70c49048e3ec3ee768bd9cd85f9b06c1631 (patch)
treeb328fa336ca0e5aeea2d1435f123de7b65f861a2 /internal/chore/handler.go
parent6845fd54f10f9f7c2b500255af578cf5078ff3f5 (diff)
downloaddonetick-f115d70c49048e3ec3ee768bd9cd85f9b06c1631.tar.gz
donetick-f115d70c49048e3ec3ee768bd9cd85f9b06c1631.tar.bz2
donetick-f115d70c49048e3ec3ee768bd9cd85f9b06c1631.zip
make thing a pointer on chore
Diffstat (limited to 'internal/chore/handler.go')
-rw-r--r--internal/chore/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/chore/handler.go b/internal/chore/handler.go
index 919e838..d15d4e7 100644
--- a/internal/chore/handler.go
+++ b/internal/chore/handler.go
@@ -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)