We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95c4203 commit 8981466Copy full SHA for 8981466
api/controllers/event.js
@@ -68,7 +68,7 @@ module.exports = function( app ) {
68
69
function query() {
70
return event
71
- .query( { active: true } )
+ .query( { active: true }, { description: 0 } )
72
.populate( 'eventType', 'name _id lastUpdate' )
73
.populate( 'place', 'name _id lastUpdate' );
74
}
api/models/news.js
@@ -1,7 +1,7 @@
1
const
2
mongoose = require( 'mongoose' ),
3
- dispatcher = require('../wamp/index.js').dispatcher
4
- Schema = mongoose.Schema;
+ Schema = mongoose.Schema,
+ dispatcher = require('../wamp/index.js').dispatcher;
5
6
const dispatchOnSave = (doc, modelName) => {
7
const _id = doc._id.toString(),
0 commit comments