UNPKG

generator-aristos

Version:

create aristos cms fast with yeoman generator.

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