不要怂,就是干,撸起袖子干!

Commit d16de58f by Vidit Kothari Committed by GitHub

fix(docs/instances): use correct variable for increment (#12087)

1 parent 330728b2
Showing with 2 additions and 3 deletions
......@@ -147,7 +147,7 @@ In order to increment/decrement values of an instance without running into concu
```js
const jane = await User.create({ name: "Jane", age: 100 });
const incrementResult = await user.increment('age', { by: 2 });
const incrementResult = await jane.increment('age', { by: 2 });
// Note: to increment by 1 you can omit the `by` option and just do `user.increment('age')`
// In PostgreSQL, `incrementResult` will be the updated user, unless the option
......@@ -169,4 +169,4 @@ await jane.increment({
await jane.increment(['age', 'cash'], { by: 2 });
```
Decrementing works in the exact same way.
\ No newline at end of file
Decrementing works in the exact same way.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!