fix: user deletion never happens

Resolves #1024
This commit is contained in:
kolaente 2021-12-12 12:04:17 +01:00
parent 2f0a36eb47
commit 72d3c54efd
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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
}