From a55f4c449cc2a3641c5d35d901e6f342c517cb0c Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 14 Jan 2025 15:03:29 +0100 Subject: [PATCH] light modification --- models/resources/storage.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/models/resources/storage.go b/models/resources/storage.go index 8dc2d59..d8179f5 100644 --- a/models/resources/storage.go +++ b/models/resources/storage.go @@ -16,9 +16,8 @@ import ( */ type StorageResource struct { AbstractIntanciatedResource[*StorageResourceInstance] // AbstractResource contains the basic fields of an object (id, name) - Source string `bson:"source,omitempty" json:"source,omitempty"` // Source is the source of the storage - StorageType common.StorageType `bson:"storage_type,omitempty"` // Type is the type of the storage - Type string `json:"type,omitempty"` + Source string `bson:"source,omitempty" json:"source,omitempty"` // Source is the source of the storage + StorageType common.StorageType `json:"storage_type,omitempty"` // Type is the type of the storage Acronym string `bson:"acronym,omitempty" json:"acronym,omitempty"` // Acronym is the acronym of the storage } @@ -27,7 +26,6 @@ func (d *StorageResource) GetAccessor(request *tools.APIRequest) utils.Accessor } func (r *StorageResource) Transform() utils.DBObject { - r.Type = r.StorageType.String() return r }