fix: user deletion schedule
This commit is contained in:
parent
70e005e7ce
commit
5c88dfe88e
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ import (
|
||||||
|
|
||||||
// RegisterUserDeletionCron registers the cron job that actually removes users who are scheduled to delete.
|
// RegisterUserDeletionCron registers the cron job that actually removes users who are scheduled to delete.
|
||||||
func RegisterUserDeletionCron() {
|
func RegisterUserDeletionCron() {
|
||||||
err := cron.Schedule("* * * * *", deleteUsers)
|
err := cron.Schedule("0 * * * *", deleteUsers)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("Could not register deletion cron: %s", err.Error())
|
log.Errorf("Could not register deletion cron: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue