This commit is contained in:
mr
2025-02-13 15:11:23 +01:00
parent 271cc2caa0
commit 085a8718e0
5 changed files with 17 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ import (
* it defines the resource data
*/
type DataResource struct {
AbstractIntanciatedResource[*DataInstance]
AbstractInstanciatedResource[*DataInstance]
Type string `bson:"type,omitempty" json:"type,omitempty"`
Quality string `bson:"quality,omitempty" json:"quality,omitempty"`
OpenData bool `bson:"open_data" json:"open_data" default:"false"` // Type is the type of the storage
@@ -42,7 +42,7 @@ func (abs *DataResource) ConvertToPricedResource(
if t != tools.DATA_RESOURCE {
return nil
}
p := abs.AbstractIntanciatedResource.ConvertToPricedResource(t, request)
p := abs.AbstractInstanciatedResource.ConvertToPricedResource(t, request)
priced := p.(*PricedResource)
return &PricedDataResource{
PricedResource: *priced,