From 231ac59e843570f068ce1fe0fc8c87a54e3f1584 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Thu, 18 Jul 2024 11:33:32 +0200 Subject: [PATCH] fix: there's no append() in Javascript --- src/registered.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registered.js b/src/registered.js index ce1b833..da4370b 100644 --- a/src/registered.js +++ b/src/registered.js @@ -128,7 +128,7 @@ async function createPublisher(apiURL, apiPasetoKey, pec, amministrazione, ipa, async function updateExistingPublisher(apiURL, apiPasetoKey, publisherID, pec, url, codeHosting) { const apiPayload = { email: pec, - codeHosting: codeHosting.append({ + codeHosting: codeHosting.push({ url: url }), };