mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 15:05:26 +02:00
eslint fixes
This commit is contained in:
parent
ec34075bc5
commit
b578670fb3
2 changed files with 3 additions and 3 deletions
|
@ -81,6 +81,7 @@ class PagesOrder {
|
|||
const ordered = [ ...new Set([...children.order, ...unordered]) ];
|
||||
|
||||
const result = [];
|
||||
|
||||
ordered.forEach(pageId => {
|
||||
pages.forEach(page => {
|
||||
if (page._id === pageId && (pageId !== currentPageId || !ignoreSelf)) {
|
||||
|
|
|
@ -2,5 +2,4 @@ const Datastore = require('nedb');
|
|||
const config = require('../../../config');
|
||||
const db = new Datastore({filename: `./${config.database}/pagesOrder.db`, autoload: true});
|
||||
|
||||
}
|
||||
module.exports = db;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue