UNPKG

generator-aristos

Version:

create aristos cms fast with yeoman generator.

19 lines 754 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; /** * Creates a single blog comment in the Blog Comment collection. * @param {object} blogCommentProps - Object containing ?? * @return {promise} A promise that resolves with the blog comment that was created */ module.exports = blogCommentProps => { const comment = new BlogComments(blogCommentProps); return comment.save().catch(err => { errorAddEvent(err, "blog comment query error"); }); };