Skip to content

Commit 0be71aa

Browse files
authored
Fix indexUrl command (#15)
* fix indexUrl * changeset
1 parent 56538bd commit 0be71aa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/slow-moons-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@team-plain/cli": patch
3+
---
4+
5+
Fix non awaited promise

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function handleError(message, requestId = "–") {
3131

3232
async function indexUrl(url, labelTypeIds = []) {
3333
const client = getClient();
34-
const res = client.indexDocument({
34+
const res = await client.indexDocument({
3535
url,
3636
labelTypeIds,
3737
});

0 commit comments

Comments
 (0)