1
0
Fork 0
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:
Murod Khaydarov 2019-02-18 21:51:50 +03:00
parent ec34075bc5
commit b578670fb3
No known key found for this signature in database
GPG key ID: C480BA53A8D274C5
2 changed files with 3 additions and 3 deletions

View file

@ -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)) {

View file

@ -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;