From 9356d293f50ad8b886570f0e4527a7ea6ab734fd Mon Sep 17 00:00:00 2001 From: "Lucian I. Last" Date: Wed, 27 Nov 2024 12:56:00 +0100 Subject: [PATCH] Fix bag not updating when holder is changed --- server/internal/controllers/bag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/controllers/bag.go b/server/internal/controllers/bag.go index 7a140277d..338945c09 100644 --- a/server/internal/controllers/bag.go +++ b/server/internal/controllers/bag.go @@ -127,7 +127,7 @@ LIMIT 1 } if body.UpdatedAt != nil { bag.UpdatedAt = *(body.UpdatedAt) - } else if bag.ID == 0 { + } else if bag.ID == 0 || bag.UserChainID != holder.UserChainID { bag.UpdatedAt = time.Now() } bag.LastNotifiedAt = nil