Skip to content

Commit

Permalink
Fix indexUrl command (#15)
Browse files Browse the repository at this point in the history
* fix indexUrl

* changeset
  • Loading branch information
andrewblaney authored Nov 29, 2024
1 parent 56538bd commit 0be71aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slow-moons-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@team-plain/cli": patch
---

Fix non awaited promise
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function handleError(message, requestId = "–") {

async function indexUrl(url, labelTypeIds = []) {
const client = getClient();
const res = client.indexDocument({
const res = await client.indexDocument({
url,
labelTypeIds,
});
Expand Down

0 comments on commit 0be71aa

Please sign in to comment.