Skip to content

Commit 8981466

Browse files
committed
Try to fix event list
1 parent 95c4203 commit 8981466

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/controllers/event.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module.exports = function( app ) {
6868

6969
function query() {
7070
return event
71-
.query( { active: true } )
71+
.query( { active: true }, { description: 0 } )
7272
.populate( 'eventType', 'name _id lastUpdate' )
7373
.populate( 'place', 'name _id lastUpdate' );
7474
}

api/models/news.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const
22
mongoose = require( 'mongoose' ),
3-
dispatcher = require('../wamp/index.js').dispatcher
4-
Schema = mongoose.Schema;
3+
Schema = mongoose.Schema,
4+
dispatcher = require('../wamp/index.js').dispatcher;
55

66
const dispatchOnSave = (doc, modelName) => {
77
const _id = doc._id.toString(),

0 commit comments

Comments
 (0)