diff --git a/hscontrol/db/node.go b/hscontrol/db/node.go index 880a0e14..e2a82cc3 100644 --- a/hscontrol/db/node.go +++ b/hscontrol/db/node.go @@ -900,7 +900,7 @@ func (hsdb *HSDatabase) ExpireExpiredNodes(lastCheck time.Time) time.Time { // Do not use setNodeExpiry as that has a notifier hook, which // can cause a deadlock, we are updating all changed nodes later // and there is no point in notifiying twice. - if err := hsdb.db.Model(nodes[index]).Updates(types.Node{ + if err := hsdb.db.Model(&nodes[index]).Updates(types.Node{ Expiry: &started, }).Error; err != nil { log.Error().