From a77c28027497c2c598cafdf2cb5a8986c8433753 Mon Sep 17 00:00:00 2001 From: Boldizsar Mezei Date: Tue, 24 Oct 2023 17:52:36 +0200 Subject: [PATCH] Fix deploy Fixes --- packages/functions/deploy.script.ts | 3 +++ .../test-tangle/award-tangle/award-tangle_6.spec.ts | 5 +---- packages/interfaces/src/functions/index.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/functions/deploy.script.ts b/packages/functions/deploy.script.ts index ebd1aa1169..8536fa09e1 100644 --- a/packages/functions/deploy.script.ts +++ b/packages/functions/deploy.script.ts @@ -34,6 +34,9 @@ Object.entries({ --allow-unauthenticated \\ --ingress=internal-and-cloud-load-balancing \\ `; + if (options?.region) { + command += ` --region=${options.region} \\\n`; + } if (options?.timeoutSeconds) { command += ` --timeout=${options.timeoutSeconds} \\\n`; } diff --git a/packages/functions/test-tangle/award-tangle/award-tangle_6.spec.ts b/packages/functions/test-tangle/award-tangle/award-tangle_6.spec.ts index cf1e272d11..fc62400256 100644 --- a/packages/functions/test-tangle/award-tangle/award-tangle_6.spec.ts +++ b/packages/functions/test-tangle/award-tangle/award-tangle_6.spec.ts @@ -95,10 +95,7 @@ describe('Award tangle request', () => { await wait(async () => { const snap = await creditQuery.get(); - return ( - snap.length === 2 && - snap.reduce((acc, act) => acc && (act.payload?.walletReference?.confirmed || false), true) - ); + return snap.length === 2; }); snap = await creditQuery.get(); credit = snap.find((d) => !isEmpty(d.payload?.response?.badges))!; diff --git a/packages/interfaces/src/functions/index.ts b/packages/interfaces/src/functions/index.ts index 955c5e8c73..c3dc2ccdc6 100644 --- a/packages/interfaces/src/functions/index.ts +++ b/packages/interfaces/src/functions/index.ts @@ -84,9 +84,9 @@ export enum WEN_FUNC { uploadFile = 'uploadfile', - createProject = 'createProject', - deactivateProject = 'deactivateProject', - createProjetApiKey = 'createProjetApiKey', + createProject = 'createproject', + deactivateProject = 'deactivateproject', + createProjetApiKey = 'createprojetapikey', stamp = 'stamp', }