Skip to content

Commit

Permalink
Fix bag not updating when holder is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
lil5 committed Nov 27, 2024
1 parent 3f0dd5a commit 9356d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/internal/controllers/bag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9356d29

Please sign in to comment.