From e40e306faa586d724a64799b08f700895aac0ba8 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Thu, 10 Apr 2025 21:11:38 +0200 Subject: [PATCH] update openapi --- api/openapi.json | 4 ++-- apps/db-adapter/internal/api/admin.go | 2 +- apps/db-adapter/pkg/api/api.gen.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/openapi.json b/api/openapi.json index 982ebfd..7e4d13d 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -866,10 +866,10 @@ "type": "object", "properties": { "id1": { - "type": "string" + "type": "integer" }, "id2": { - "type": "string" + "type": "integer" }, "type": { "type": "string", diff --git a/apps/db-adapter/internal/api/admin.go b/apps/db-adapter/internal/api/admin.go index 385547b..d803405 100644 --- a/apps/db-adapter/internal/api/admin.go +++ b/apps/db-adapter/internal/api/admin.go @@ -119,7 +119,7 @@ func (srv *server) GetManagedProfiles(c *gin.Context, params api.GetManagedProfi qctx, qCancel := context.WithTimeout(c.Request.Context(), srv.dbOpTimeout) defer qCancel() - res, err := session.ExecuteRead(qctx, memgraph.GetManagedProfiles(qctx, id)) + res, err := session.ExecuteRead(qctx, memgraph.GetManagedProfiles(qctx, params.XUserID)) if err != nil { c.JSON(http.StatusInternalServerError, gin.H{"msg": err.Error()}) diff --git a/apps/db-adapter/pkg/api/api.gen.go b/apps/db-adapter/pkg/api/api.gen.go index 62adff9..2fbc270 100644 --- a/apps/db-adapter/pkg/api/api.gen.go +++ b/apps/db-adapter/pkg/api/api.gen.go @@ -353,8 +353,8 @@ type CreateRecipeRelationshipParams struct { // CreateRelationshipJSONBody defines parameters for CreateRelationship. type CreateRelationshipJSONBody struct { - Id1 *string `json:"id1,omitempty"` - Id2 *string `json:"id2,omitempty"` + Id1 *int `json:"id1,omitempty"` + Id2 *int `json:"id2,omitempty"` Relationship *FamilyRelationship `json:"relationship,omitempty"` Type *CreateRelationshipJSONBodyType `json:"type,omitempty"` }