Skip to content

Commit

Permalink
Fix document_lifecycle.md (#937)
Browse files Browse the repository at this point in the history
* Fix document_lifecycle.md

Signed-off-by: Arthur Caccavo <arthur.caccavo@proton.me>
  • Loading branch information
eusousu authored Dec 16, 2024
1 parent fc7bc20 commit 4ce1fe3
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 @@ -16,7 +16,7 @@ Next, create an index named `movies` with the default settings:
const index = 'movies';
client.indices.exists({ index: index })
.then(exists => {
if (!exists) {
if (!exists.body) {
return client.indices.create({ index: index });
}
})
Expand Down

0 comments on commit 4ce1fe3

Please sign in to comment.