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

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
Example:
```js
const amidala = User.create({ username: 'p4dm3', points: 1000 });
const queen = Profile.create({ name: 'Queen' });
const amidala = await User.create({ username: 'p4dm3', points: 1000 });
const queen = await Profile.create({ name: 'Queen' });
await amidala.addProfile(queen, { through: { selfGranted: false } });
const result = await User.findOne({
where: { username: 'p4dm3' },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!