diff --git a/docs-website/docs/docs/CRUD.md b/docs-website/docs/docs/CRUD.md index 9e167684d..fc443f211 100644 --- a/docs-website/docs/docs/CRUD.md +++ b/docs-website/docs/docs/CRUD.md @@ -42,8 +42,8 @@ All modifications to the database (like creating, updating, deleting records) mu ```js await database.write(async () => { - const comment = await database.get('comments').find(commentId) - await comment.update(() => { + const someComment = await database.get('comments').find(commentId) + await someComment.update((comment) => { comment.isSpam = true }) })