Skip to content

Commit

Permalink
Fix document_lifecycle.md
Browse files Browse the repository at this point in the history
unpack exists boolean value form response body

Signed-off-by: Arthur Caccavo <arthur.caccavo@proton.me>
  • Loading branch information
eusousu authored Dec 6, 2024
1 parent 4ae6093 commit 1cbbfc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/document_lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Next, create an index named `movies` with the default settings:
```javascript
const index = 'movies';
client.indices.exists({ index: index })
.then(exists => {
.then({ body: exists } => {
if (!exists) {
return client.indices.create({ index: index });
}
Expand Down

0 comments on commit 1cbbfc5

Please sign in to comment.