corrected live accessor

This commit is contained in:
mr
2025-06-26 15:59:21 +02:00
parent af0d7807bc
commit 34b7cdcf06
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ type LiveStorage struct {
}
func (d *LiveStorage) GetAccessor(request *tools.APIRequest) utils.Accessor {
return NewAccessor[*LiveStorage](request) // Create a new instance of the accessor
return NewAccessor[*LiveStorage](tools.LIVE_STORAGE, request) // Create a new instance of the accessor
}
func (d *LiveStorage) GetResourceAccessor(request *tools.APIRequest) utils.Accessor {
return resources.NewAccessor[*resources.ComputeResource](tools.STORAGE_RESOURCE, request, func() utils.DBObject { return &resources.StorageResource{} })