UNPKG

generator-aristos

Version:

create aristos cms fast with yeoman generator.

20 lines 664 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; /** * Finds all the changelogs in the Changelog collection. * @return {promise} A promise that resolves with all the changwelogs */ module.exports = () => { return Changelog.find({}) .populate("category") .populate("author") .catch(err => { errorAddEvent(err, "changelog query error"); }); };