1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-09 15:35:25 +02:00

change commentaries

This commit is contained in:
cabad 2018-12-28 20:23:06 +04:00
parent bff4dde56a
commit a2796f55f5

View file

@ -42,8 +42,10 @@ class Pages {
}
/**
* @static
* Return all pages without children pages
*
* @param {string} parent - id of current page
* @returns {Promise<Page[]>}
*/
static async getWithoutChildren(parent) {
@ -53,9 +55,12 @@ class Pages {
}
/**
* Change wrong pages to null
* @static
* Set all children elements to null
*
* @returns page[]
* @param {Array<?Page>} pagesAvailable - Array of all pages
* @param {string} parent - id of parent page
* @returns {Array<?Page>}
*/
static removeChildren(pagesAvailable, parent) {
pagesAvailable.forEach(async (item, index) => {