MCPcopy Index your code
hub / github.com/subquery/subql / promoteDeployment

Function promoteDeployment

packages/cli/src/controller/deploy-controller.ts:66–81  ·  view source on GitHub ↗
(
  org: string,
  projectName: string,
  authToken: string,
  deploymentId: number,
  url: string
)

Source from the content-addressed store, hash-verified

64}
65
66export async function promoteDeployment(
67 org: string,
68 projectName: string,
69 authToken: string,
70 deploymentId: number,
71 url: string
72): Promise<string> {
73 try {
74 await getAxiosInstance(url, authToken).post(
75 `subqueries/${buildProjectKey(org, projectName)}/deployments/${deploymentId}/release`
76 );
77 return `${deploymentId}`;
78 } catch (e) {
79 throw errorHandle(e, 'Failed to promote project:');
80 }
81}
82
83export async function deleteDeployment(
84 org: string,

Callers 2

promoteAdapterFunction · 0.90

Calls 3

buildProjectKeyFunction · 0.90
errorHandleFunction · 0.90
getAxiosInstanceFunction · 0.85

Tested by

no test coverage detected