Skip to content

Commit

Permalink
fix: latestDeployment is first not last
Browse files Browse the repository at this point in the history
  • Loading branch information
RamIdeas committed Mar 8, 2024
1 parent 491ce14 commit 28c06f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wrangler/src/versions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ async function fetchLatestDeploymentVersions(
`/accounts/${accountId}/workers/scripts/${workerName}/deployments`
);

const latestDeployment = deployments.at(-1);
const latestDeployment = deployments.at(0);
if (!latestDeployment) return [[], new Map()];

const versionTraffic = new Map(
Expand Down

0 comments on commit 28c06f0

Please sign in to comment.