Skip to content

Commit

Permalink
Update document_lifecycle.md
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Caccavo <arthur.caccavo@proton.me>
  • Loading branch information
eusousu authored Dec 12, 2024
1 parent 1cbbfc5 commit a8e9fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/document_lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Next, create an index named `movies` with the default settings:
```javascript
const index = 'movies';
client.indices.exists({ index: index })
.then({ body: exists } => {
if (!exists) {
.then(exists => {
if (!exists.body) {
return client.indices.create({ index: index });
}
})
Expand Down

0 comments on commit a8e9fad

Please sign in to comment.