UNPKG

generator-aristos

Version:

create aristos cms fast with yeoman generator.

17 lines 618 B
const fs = require("fs-extra"); const BlogComment = fs.readJSONSync( "./expansion/upgrade/blog/routes/checkers/blogModelCommentRoute.json" ).route; const BlogComments = require(BlogComment); /* Aristos Logger Path */ const errorAddEvent = require("../../../../../../important/AristosStuff/AristosLogger/AristosLogger") .addError; /** * Finds all the blog comments in the Blog Comment collection. * @return {promise} A promise that resolves with all the blog comments */ module.exports = () => { return BlogComments.find({}).catch(err => { errorAddEvent(err, "blog comment query error"); }); };