UNPKG

generator-aristos

Version:

create aristos cms fast with yeoman generator.

21 lines 709 B
const fs = require("fs-extra"); const Documentations = fs.readJSONSync( "./expansion/upgrade/documentation-builder/routes/checkers/documentationModelRoutes.json" ).route; const Documentation = require(Documentations); /* Aristos Logger Path */ const errorAddEvent = require("../../../../../../important/AristosStuff/AristosLogger/AristosLogger") .addError; /** * counts the documentations in the Documentation collection. * @return {promise} A promise that resolves with count of the documentations */ module.exports = () => { return Documentation.estimatedDocumentCount({}) .then(c => { return c; }) .catch(err => { errorAddEvent(err, "documentation query error"); }); };