feat: add NewFile helper in storage

This commit is contained in:
Derrick Hammer 2024-01-25 16:31:05 -05:00
parent 15ba6e9695
commit e00922f49d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -639,3 +639,6 @@ func (s *StorageServiceImpl) GetFile(hash []byte, start int64) (io.ReadCloser, i
return object.Content, int64(upload.Size), nil
}
func (s *StorageServiceImpl) NewFile(hash []byte) interfaces.File {
return NewFile(hash, s)
}