sequelize-nested-set icon indicating copy to clipboard operation
sequelize-nested-set copied to clipboard

Make rootId param optional

Open fremail opened this issue 6 years ago • 0 comments

Actually we need rootId param only for multi-root trees.

Here is a list of API functions with the issue:

  • Model.fetchRoot = async function (rootId = 1, options = {})
  • Model.fetchTree = async function (depth = 0, rootId = 1, options = {})

Also several private functions:

  • Model.prototype.shiftRlValues = async function (first, delta, rootId = 1, options = {})
  • Model.prototype.shiftRlRange = async function (first, last, delta, rootId = 1, options = {})

fremail avatar Aug 04 '19 21:08 fremail