From e676c18b5f29fe8d36aa56e2667d7e30aec9df9f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 9 Jan 2023 17:19:56 +0100 Subject: [PATCH] fix approval page approve endpoint empty payload --- .../[job]/[resume]/[hmac]/+page.svelte | 54 +++++++++---------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/frontend/src/routes/approve/[workspace]/[job]/[resume]/[hmac]/+page.svelte b/frontend/src/routes/approve/[workspace]/[job]/[resume]/[hmac]/+page.svelte index 6d0729d94e..1f25100edf 100644 --- a/frontend/src/routes/approve/[workspace]/[job]/[resume]/[hmac]/+page.svelte +++ b/frontend/src/routes/approve/[workspace]/[job]/[resume]/[hmac]/+page.svelte @@ -23,7 +23,7 @@ let timeout: NodeJS.Timer | undefined = undefined let error: string | undefined = undefined - let payload = '' + let message = '' onMount(() => { getJob() @@ -70,7 +70,7 @@ resumeId: new Number($page.params.resume).valueOf(), signature: $page.params.hmac, approver, - requestBody: payload + requestBody: { message } }) sendUserToast('Flow approved') getJob() @@ -98,8 +98,8 @@

Current approvers

Each approver can only approve once and cannot change his approver name set by the - approval sender

Each approver can only approve once and cannot change his approver name set by the approval + sender

{#if currentApprovers.length > 0} @@ -107,8 +107,7 @@ {#each currentApprovers as approver}
  • {approver.approver}Unique id of approval: {approver.resume_id}{approver.approver}Unique id of approval: {approver.resume_id}
  • @@ -116,8 +115,7 @@ {:else}

    No current approvers for this step (approval steps can require more than one - approval)

    No current approvers for this step (approval steps can require more than one approval)

    {/if}
    @@ -144,26 +142,26 @@

    You have already approved this flow to be resumed

    {/if} -
    - - -
    -
    -

    Payload (optional)

    - -
    +
    + + +
    +
    +

    message (optional)

    + +