From e524c865ea1b5d379f54ecdbffe5fb2e0139d7ff Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 28 Nov 2024 13:41:50 +0100 Subject: [PATCH] some --- .../resource_model/resource_model_mongo_accessor.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/models/resources/resource_model/resource_model_mongo_accessor.go b/models/resources/resource_model/resource_model_mongo_accessor.go index be3d123..431e406 100644 --- a/models/resources/resource_model/resource_model_mongo_accessor.go +++ b/models/resources/resource_model/resource_model_mongo_accessor.go @@ -3,7 +3,9 @@ package resource_model import ( "cloud.o-forge.io/core/oc-lib/dbs" "cloud.o-forge.io/core/oc-lib/dbs/mongo" + "cloud.o-forge.io/core/oc-lib/logs" "cloud.o-forge.io/core/oc-lib/models/utils" + "cloud.o-forge.io/core/oc-lib/tools" ) type ResourceModelMongoAccessor struct { @@ -15,7 +17,12 @@ type ResourceModelMongoAccessor struct { */ func New() *ResourceModelMongoAccessor { - return &ResourceModelMongoAccessor{} + return &ResourceModelMongoAccessor{ + utils.AbstractAccessor{ + Type: tools.RESOURCE_MODEL.String(), + Logger: logs.CreateLogger(tools.RESOURCE_MODEL.String()), + }, + } } func (wfa *ResourceModelMongoAccessor) DeleteOne(id string) (utils.DBObject, int, error) {