mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 09:10:26 +00:00
add task to purge invitation tokens
This commit is contained in:
parent
15dc75fce6
commit
67d421db5d
1 changed files with 8 additions and 0 deletions
|
@ -138,6 +138,14 @@ func run(cfg *config.Config) error {
|
||||||
Msg("failed to purge expired tokens")
|
Msg("failed to purge expired tokens")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
go app.startBgTask(time.Duration(24)*time.Hour, func() {
|
||||||
|
_, err := app.repos.Groups.InvitationPurge(context.Background())
|
||||||
|
if err != nil {
|
||||||
|
log.Error().
|
||||||
|
Err(err).
|
||||||
|
Msg("failed to purge expired invitations")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
// TODO: Remove through external API that does setup
|
// TODO: Remove through external API that does setup
|
||||||
if cfg.Demo {
|
if cfg.Demo {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue