Skip to content

Commit

Permalink
Merge pull request activepieces#5772 from activepieces/fix/slack
Browse files Browse the repository at this point in the history
fix: send edition with apps
  • Loading branch information
abuaboud authored Oct 6, 2024
2 parents 9a2961f + 8b9b94b commit b0ab9ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ import {
OAuthApp,
UpsertOAuth2AppRequest,
} from '@activepieces/ee-shared';
import { SeekPage } from '@activepieces/shared';
import { ApEdition, SeekPage } from '@activepieces/shared';

export const oauthAppsApi = {
listCloudOAuthApps(): Promise<Record<string, { clientId: string }>> {
listCloudOAuthApps(edition: ApEdition): Promise<Record<string, { clientId: string }>> {
return api.get<Record<string, { clientId: string }>>(
'https://secrets.activepieces.com/apps',
{
edition,
}
);
},
listOAuthAppsCredentials(request: ListOAuth2AppRequest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const oauth2AppsHooks = {
});
const cloudApps = !cloudAuthEnabled
? {}
: await oauthAppsApi.listCloudOAuthApps();
: await oauthAppsApi.listCloudOAuthApps(edition);
const appsMap: PieceToClientIdMap = {};
Object.keys(cloudApps).forEach((key) => {
appsMap[key] = {
Expand Down

0 comments on commit b0ab9ea

Please sign in to comment.