Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in graph auth #1683

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/six-moles-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': patch
---

fix graph auth
3 changes: 0 additions & 3 deletions packages/cli/src/commands/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
required: true,
}));

// Poor var naming will cleanup later
({ node } = chooseNodeUrl({ product: node, studio: false }));

// eslint-disable-next-line -- prettier has problems with ||=
deployKey =
deployKey ||
Expand All @@ -76,7 +73,7 @@
}

try {
await saveDeployKey(node!, deployKey);

Check warning on line 76 in packages/cli/src/commands/auth.ts

View workflow job for this annotation

GitHub Actions / Lint

Forbidden non-null assertion
print.success(`Deploy key set for ${node}`);
} catch (e) {
this.error(e, { exit: 1 });
Expand Down
Loading