Skip to content

Commit

Permalink
fix(core): fix verification of non-existent cloud client (#19613)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Oct 14, 2023
1 parent 6299999 commit d293d34
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/nx/src/nx-cloud/update-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,13 @@ async function verifyCurrentBundle(
axios: AxiosInstance,
currentBundle: CloudBundleInstall | null
): Promise<AxiosResponse<VerifyClientBundleResponse>> {
const contentHash = getBundleContentHash(currentBundle);
return axios.get('/nx-cloud/client/verify', {
params: {
version: currentBundle.version,
contentHash: contentHash,
},
params: currentBundle
? {
version: currentBundle.version,
contentHash: getBundleContentHash(currentBundle),
}
: {},
});
}

Expand Down

0 comments on commit d293d34

Please sign in to comment.