Skip to content

Commit

Permalink
Docs: Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jul 3, 2019
1 parent f1ec87b commit b87c8c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ const folder = await Folder.findOne({
// Get all the ancestors (i.e. parent and parent's parent and so on)
const folder = await Folder.findOne({
where: { name: 'abc' },
include: [ { model: folder, as: 'ancestors' } ],
order: [ [ { model: folder, as: 'ancestors' }, 'hierarchyLevel' ] ]
include: [ { model: Folder, as: 'ancestors' } ],
order: [ [ { model: Folder, as: 'ancestors' }, 'hierarchyLevel' ] ]
});
// { id: 3, parentId: 2, name: 'abc', ancestors: [
// { id: 1, parentId: null, name: 'a' },
Expand Down

0 comments on commit b87c8c2

Please sign in to comment.