mirror of
https://github.com/hay-kot/homebox.git
synced 2025-05-30 00:52:29 +00:00
update CI
This commit is contained in:
parent
8c5f481fb9
commit
08d6c83fd4
4 changed files with 18 additions and 5 deletions
|
@ -108,7 +108,12 @@ func run(cfg *config.Config) error {
|
|||
// Start Reoccurring Tasks
|
||||
|
||||
go app.StartReoccurringTasks(time.Duration(24)*time.Hour, func() {
|
||||
app.repos.AuthTokens.PurgeExpiredTokens(context.Background())
|
||||
_, err := app.repos.AuthTokens.PurgeExpiredTokens(context.Background())
|
||||
if err != nil {
|
||||
app.logger.Error(err, logger.Props{
|
||||
"details": "failed to purge expired tokens",
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
return app.server.Start(routes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue