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

You need to sign in or sign up before continuing.
Commit b9bc8b83 by Ivan Montiel Committed by Jan Aagaard Meier

docs: Minor fix to count docs (#7780)

Small change the docs in order to fix an incorrect ES6 arrow function.
1 parent f56caec8
Showing with 2 additions and 2 deletions
......@@ -334,11 +334,11 @@ Project.findAll({ where: { ... }, raw: true })
There is also a method for counting database objects:
```js
Project.count().then(c) =>
Project.count().then(c =>
console.log("There are " + c + " projects!")
})
Project.count({ where: {'id': {$gt: 25}} }).then(c) =>
Project.count({ where: {'id': {$gt: 25}} }).then(c =>
console.log("There are " + c + " projects with an id greater than 25.")
})
```
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!