Skip to content

Commit

Permalink
fix: use correct deploymentId for logs --prod
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Oct 18, 2024
1 parent 8644ec5 commit afa78a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subcommands/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ async function liveLogs(api: API, opts: LiveLogOpts): Promise<void> {
projectSpinner.fail("This project doesn't have a production deployment");
Deno.exit(1);
}
opts.deploymentId = project.productionDeployment?.id ?? null;
opts.deploymentId = project.productionDeployment?.deploymentId ?? null;
}
projectSpinner.succeed(`Project: ${project.name}`);
const logs = opts.deploymentId
Expand Down Expand Up @@ -307,7 +307,7 @@ async function queryLogs(api: API, opts: QueryLogOpts): Promise<void> {
projectSpinner.fail("This project doesn't have a production deployment");
Deno.exit(1);
}
opts.deploymentId = project.productionDeployment?.id ?? null;
opts.deploymentId = project.productionDeployment?.deploymentId ?? null;
}
projectSpinner.succeed(`Project: ${project.name}`);

Expand Down

0 comments on commit afa78a1

Please sign in to comment.