Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/inserting-updating-destroying.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ console.log(wasCreated) // true

// now if we findOrCreate a second time...

const arr2 = Pug.findOrCreate({where: {name: 'Cody'}})
const arr2 = await Pug.findOrCreate({where: {name: 'Cody'}})
const instance = arr2[0]
const wasCreated = arr2[1]
console.log(instance) // {id: 1, name: 'Cody', etc...}
Expand Down