From 72d3c54efd3dda6ae846a069415688391cb1c9ae Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 12 Dec 2021 12:04:17 +0100 Subject: [PATCH] fix: user deletion never happens Resolves #1024 --- pkg/models/user_delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/user_delete.go b/pkg/models/user_delete.go index c527121a..c590ccaa 100644 --- a/pkg/models/user_delete.go +++ b/pkg/models/user_delete.go @@ -59,7 +59,7 @@ func deleteUsers() { now := time.Now() for _, u := range users { - if u.DeletionScheduledAt.Before(now) { + if !u.DeletionScheduledAt.Before(now) { log.Debugf("User %d is not yet scheduled for deletion. Scheduled at %s, now is %s", u.ID, u.DeletionScheduledAt, now) continue }