Skip to content

Commit 2246bd6

Browse files
authored
docs: fix example of sync method (robsontenorio#136)
1 parent e1afa2a commit 2246bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/en/performing-operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ We can update a `Comment` of a **Post**:
270270

271271
```js
272272
const post = await Post.find(1)
273-
const comment = await post.comments().attach({
273+
const comment = await post.comments().sync({
274274
text: 'Awesome post!'
275275
})
276276
```

0 commit comments

Comments
 (0)