UNPKG

generator-aristos

Version:

create aristos cms fast with yeoman generator.

19 lines (17 loc) 474 B
const Note = require("../../note"); /* Aristos Logger Path */ const errorAddEvent = require("../../../../../../important/AristosStuff/AristosLogger/AristosLogger") .addError; /** * Counts the notes in the Note collection. * @return {promise} A promise that resolves with the count */ module.exports = () => { return Note.estimatedDocumentCount({}) .then(c => { return c; }) .catch(err => { errorAddEvent(err, "notes query error"); }); };