Skip to content

Commit

Permalink
Docs: Fix rebuildHierarchy code example
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Apr 26, 2019
1 parent 0172928 commit f1ec87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ All auto-created field names respect the setting of `model.options.underscored`
To build the hierarchy data on an existing table, or if hierarchy data gets corrupted in some way (e.g. by changes to parentId being made directly in the database not through Sequelize), you can rebuild it with:

```js
Folder.rebuildHierarchy()
await Folder.rebuildHierarchy()
```

NB: In normal circumstances, you should never need to use this method. It is only intended for the above two use cases.
Expand Down

0 comments on commit f1ec87b

Please sign in to comment.