rename storageMount

This commit is contained in:
Kendall Garner 2026-07-25 17:35:43 -07:00
parent 6ef31745b8
commit 6d09e6480f
No known key found for this signature in database
GPG Key ID: 9355F387FE765C94
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import (
"github.com/navidrome/navidrome/plugins/host"
)
const STORAGE_MOUNT = "/storage"
const storageMount = "/storage"
type storageServiceImpl struct{}
@ -28,7 +28,7 @@ func newStorageService(pluginName string) (host.StorageService, error) {
}
func (s *storageServiceImpl) GetStoragePath(ctx context.Context) string {
return STORAGE_MOUNT
return storageMount
}
var _ host.StorageService = (*storageServiceImpl)(nil)

View File

@ -352,7 +352,7 @@ func (m *Manager) loadPluginWithConfig(p *model.Plugin) error {
}
if pkg.Manifest.HasStoragePermissions() {
allowedPaths[getHostStoragePath(p.ID)] = STORAGE_MOUNT
allowedPaths[getHostStoragePath(p.ID)] = storageMount
}
pluginManifest.AllowedPaths = allowedPaths