fix: pass model protocol property

This commit is contained in:
Derrick Hammer 2024-01-21 00:48:50 -05:00
parent 3e0246df28
commit e0de290cff
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ func (s *StorageServiceImpl) buildNewTusUploadTask(upload *models.TusUpload) (jo
return err
}
err = s.PutFile(reader, s.portal.Config().GetString("core.storage.s3.bucket"), dbHash)
err = s.PutFile(reader, upload.Protocol, dbHash)
if err != nil {
s.portal.Logger().Error("Could not upload file", zap.Error(err))