From bd7a67e772a46c3f7c27cbd5e824f49499b4c4cb Mon Sep 17 00:00:00 2001 From: Norbert Csaba Herczeg Date: Sun, 20 Oct 2024 18:43:21 +0200 Subject: [PATCH] JNG-5962 aggregation validation (#82) --- .../src/main/resources/data-axios/relationServiceImpl.ts.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judo-ui-typescript-rest-axios/src/main/resources/data-axios/relationServiceImpl.ts.hbs b/judo-ui-typescript-rest-axios/src/main/resources/data-axios/relationServiceImpl.ts.hbs index 2a63bf4..857ddd5 100644 --- a/judo-ui-typescript-rest-axios/src/main/resources/data-axios/relationServiceImpl.ts.hbs +++ b/judo-ui-typescript-rest-axios/src/main/resources/data-axios/relationServiceImpl.ts.hbs @@ -442,11 +442,11 @@ private readonly {{ firstToLower imp }}StoredSerializer = {{ imp }}StoredSeriali {{# if targetRelation.isUpdatable }} async update{{ firstToUpper targetRelation.name }}(owner: {{ classDataName relation.target "Stored" }}, target: {{ classDataName targetRelation.target "Stored" }}, queryCustomizer?: CommandQueryCustomizer): Promise> { - const path = '{{ restPath relation.target "/~update/" targetRelation.name "/~update" }}'; + const path = '{{ restPath targetRelation.target "/~update" "" "" }}'; const input = this.{{ firstToLower (classDataName targetRelation.target "StoredSerializer") }}.serialize(target); const { data, ...rest } = await this.axios.post(this.getPathForActor(path), input, { headers: { - [X_JUDO_SIGNED_IDENTIFIER]: owner.__signedIdentifier, + [X_JUDO_SIGNED_IDENTIFIER]: input.__signedIdentifier, [X_JUDO_MASK]: queryCustomizer?._mask ?? DEFAULT_COMMAND_MASK, }, });