feat: register storage service with cron

This commit is contained in:
Derrick Hammer 2024-01-19 17:47:14 -05:00
parent 16a3b531ac
commit 48e3c690ce
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 0 deletions

View File

@ -216,10 +216,16 @@ func (s *StorageServiceImpl) Init() error {
s.tus = tus
s.tusStore = store
s.portal.CronService().RegisterService(s)
go s.tusWorker()
return nil
}
func (s *StorageServiceImpl) LoadInitialTasks(cron interfaces.CronService) error {
return nil
}
func (s *StorageServiceImpl) createBucketIfNotExists(bucket string) error {
resp, err := s.httpApi.R().
SetPathParam("bucket", bucket).