feat: fix getApps and create for cloudflare pages integration

This commit is contained in:
Stijn-Kuijper
2023-06-19 13:58:38 +02:00
parent 6ca010e2ba
commit 1a54bf34ef
2 changed files with 24 additions and 24 deletions
+3 -4
View File
@@ -134,7 +134,7 @@ const getApps = async ({
case INTEGRATION_CLOUDFLARE_PAGES:
apps = await getAppsCloudflarePages({
accessToken,
accountId: ''
accountId: accessId
})
break;
}
@@ -670,13 +670,12 @@ const getAppsCloudflarePages = async ({
}
);
const apps = data.map((a: any) => {
const apps = data.result.map((a: any) => {
return {
name: a["project_name"],
name: a.name,
appId: a.id,
};
});
return apps;
}