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

Commit d16de58f by Vidit Kothari Committed by GitHub

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

1 parent 330728b2
Showing with 1 additions and 1 deletions
...@@ -147,7 +147,7 @@ In order to increment/decrement values of an instance without running into concu ...@@ -147,7 +147,7 @@ In order to increment/decrement values of an instance without running into concu
```js ```js
const jane = await User.create({ name: "Jane", age: 100 }); 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')` // 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 // In PostgreSQL, `incrementResult` will be the updated user, unless the option
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!