From 5c88dfe88eab442724f22c3b29741e78939deae2 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 12 Dec 2021 12:29:05 +0100 Subject: [PATCH] fix: user deletion schedule --- 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 1724b0c8..cd168804 100644 --- a/pkg/models/user_delete.go +++ b/pkg/models/user_delete.go @@ -34,7 +34,7 @@ import ( // RegisterUserDeletionCron registers the cron job that actually removes users who are scheduled to delete. func RegisterUserDeletionCron() { - err := cron.Schedule("* * * * *", deleteUsers) + err := cron.Schedule("0 * * * *", deleteUsers) if err != nil { log.Errorf("Could not register deletion cron: %s", err.Error()) }