From 4d3383f2e82b4aca2ffe67984139619d7838ef3e Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Tue, 3 Jun 2025 15:25:49 +0200 Subject: [PATCH] fix: token not set when submitting asset with proposal --- .../upgrade/upgrade.with-proposal.services.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/services/functions/upgrade/upgrade.with-proposal.services.ts b/src/services/functions/upgrade/upgrade.with-proposal.services.ts index 48094e02..575a1779 100644 --- a/src/services/functions/upgrade/upgrade.with-proposal.services.ts +++ b/src/services/functions/upgrade/upgrade.with-proposal.services.ts @@ -85,26 +85,22 @@ const uploadWasmWithProposal = async ({ const noCommit = hasArgs({args, options: ['-na', '--no-apply']}); const uploadFileFn = async ({ - filename, fullPath: storagePath, - data, - collection, headers = [], - encoding, satellite, - proposalId + proposalId, + data, + ...restAsset }: UploadFileFnParamsWithProposal) => { await uploadAssetWithProposal({ cdn: {satellite}, proposalId, asset: { - filename, - fullPath: storagePath ?? fullPath, + ...restAsset, // @ts-expect-error type incompatibility NodeJS vs bundle data, - collection, - headers, - encoding + fullPath: storagePath ?? fullPath, + headers } }); };