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

Commit b0e6f039 by Hyunyoung Cho Committed by GitHub

docs(advanced-many-to-many): add missing `await` (#12533)

1 parent 4b2e7674
...@@ -48,8 +48,8 @@ With this, we can now track an extra information at the through table, namely th ...@@ -48,8 +48,8 @@ With this, we can now track an extra information at the through table, namely th
Example: Example:
```js ```js
const amidala = User.create({ username: 'p4dm3', points: 1000 }); const amidala = await User.create({ username: 'p4dm3', points: 1000 });
const queen = Profile.create({ name: 'Queen' }); const queen = await Profile.create({ name: 'Queen' });
await amidala.addProfile(queen, { through: { selfGranted: false } }); await amidala.addProfile(queen, { through: { selfGranted: false } });
const result = await User.findOne({ const result = await User.findOne({
where: { username: 'p4dm3' }, where: { username: 'p4dm3' },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!