Skip to content

Commit

Permalink
remove unused function stub
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickson-adbe committed Jun 11, 2024
1 parent 22f05c7 commit b230a50
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions scripts/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,6 @@ import { logError } from './scripts.js';
const baseApiUrl = `${await getGraphqlEndpoint()}/graphql/execute.json`;
const projectId = 'gmo';

/*
export async function graphqlQueryNameList(queryNameList) {
const queryName = queryNameList;
//persisted query URLs have to be encoded together with the first semicolon
const graphqlEndpoint = `${baseApiUrl}/${projectId}/${queryName}`;
const jwtToken = await getBearerToken();
// Return the fetch promise chain so that it can be awaited outside
return fetch(graphqlEndpoint, {
method: 'GET',
headers: {
Authorization: jwtToken,
},
}).then(response => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
return response.json();
}).then(data => {
return data; // Make sure to return the data so that the promise resolves with it
}).catch(error => {
console.error('Error fetching data: ', error);
throw error; // Rethrow or handle error as appropriate
});
}
*/

export async function graphqlCampaignCount(filter = {}) {
const queryName = 'getTotalPrograms';
const encodedSemiColon = encodeURIComponent(';');
Expand Down Expand Up @@ -215,10 +188,4 @@ export async function executeQuery(queryString) {
console.error('Error fetching data: ', error);
throw error; // Rethrow or handle error as appropriate
});
};

export async function getMapping(mappingPath) {



}
};

0 comments on commit b230a50

Please sign in to comment.