From 84cc2750074a4da23740a907413f5caa268e34c2 Mon Sep 17 00:00:00 2001 From: Hugo Costa Date: Tue, 14 Nov 2023 16:29:06 -0300 Subject: [PATCH] regression: getCheckoutUrl function to use correct access token with scope (#30955) --- apps/meteor/app/cloud/server/functions/getCheckoutUrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/app/cloud/server/functions/getCheckoutUrl.ts b/apps/meteor/app/cloud/server/functions/getCheckoutUrl.ts index 046728cb168..3c7d0103089 100644 --- a/apps/meteor/app/cloud/server/functions/getCheckoutUrl.ts +++ b/apps/meteor/app/cloud/server/functions/getCheckoutUrl.ts @@ -7,7 +7,7 @@ import { getWorkspaceAccessTokenOrThrow } from './getWorkspaceAccessToken'; export const getCheckoutUrl = async () => { try { - const token = await getWorkspaceAccessTokenOrThrow(false, 'workspace:billing'); + const token = await getWorkspaceAccessTokenOrThrow(true, 'workspace:billing', false); const subscriptionURL = getURL('admin/subscription', { full: true,