diff --git a/CHANGELOG.md b/CHANGELOG.md index dac4929..55ff922 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @team-plain/cli +## 0.2.1 + +### Patch Changes + +- 0be71aa: Fix non awaited promise + ## 0.2.0 ### Minor Changes diff --git a/package.json b/package.json index 0ef5f97..6bfe733 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@team-plain/cli", "private": false, - "version": "0.2.0", + "version": "0.2.1", "description": "CLI for interacting with the Plain API", "main": "./src/index.js", "bin": { diff --git a/src/index.js b/src/index.js index a6ad640..57c4d2d 100755 --- a/src/index.js +++ b/src/index.js @@ -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, });