Skip to content

Commit

Permalink
Filtering out reception dumps from http receptions index page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanishka Dilshan committed Dec 28, 2018
1 parent 8daca45 commit 1963d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/receptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs');
const envUtils = require('../helpers/envutils');

const multer = require('multer');
const upload = multer({ dest: envUtils.getTempDir()})
const upload = multer({ dest: envUtils.getTempDir() })

const router = express.Router();

Expand All @@ -16,7 +16,7 @@ const HttpDump = mongoose.model('httdump');

//receptions index page
router.get('/', (req, res) => {
HttpDump.find({})
HttpDump.find({ httpReceptionId: { $ne: null } })
.sort({ date: 'desc' })
.then(httpDumps => {
//retrieve http receptions
Expand Down

0 comments on commit 1963d68

Please sign in to comment.