Skip to content

Commit

Permalink
fix(cli): resolving code review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eikeland committed Oct 2, 2024
1 parent 6ff6662 commit 07f584b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/bin/utils/getEndpointUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getEndpointUrl = async (
process.env.FUSION_CLI_ENV = fusionEnv;

const requestService = await fetch(
`https://discovery.ci.fusion-dev.net/service-registry/environments/${fusionEnv}/services/apps`,
`https://discovery.fusion.equinor.com/service-registry/environments/${fusionEnv}/services/apps`,
{
headers: {
Authorization: `Bearer ${FUSION_TOKEN}`,
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/bin/utils/publishAppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ export const publishAppConfig = async (endpoint: string, appKey: string, config:
throw new Error(
`App ${appKey} is deleted from apps-service. HTTP status ${requestConfig.status}, ${requestConfig.statusText}`,
);
} else if (!requestConfig.ok || requestConfig.status > 399) {
} else if (!requestConfig.ok || requestConfig.status >= 400) {
const response = await requestConfig.json();
console.log(response);
throw new Error(
`Failed to upload config. HTTP status ${requestConfig.status}, ${requestConfig.statusText}`,
);
}

return await requestConfig.json();
return requestConfig.json();
};
2 changes: 1 addition & 1 deletion packages/cli/src/bin/utils/tagAppBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ export const tagAppBundle = async (endpoint: string, version: string) => {
);
}

return await requestTag.json();
return requestTag.json();
};
2 changes: 1 addition & 1 deletion packages/cli/src/bin/utils/uploadAppBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export const uploadAppBundle = async (endpoint: string, bundle: string) => {
);
}

return await requestBundle.json();
return requestBundle.json();
};

0 comments on commit 07f584b

Please sign in to comment.