regression: getCheckoutUrl function to use correct access token with scope (#30955)

pull/30966/head
Hugo Costa 2 years ago committed by GitHub
parent e261e7cbc3
commit 84cc275007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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,

Loading…
Cancel
Save