Skip to content
Permalink
Browse files

Fix missing date on image view page.

  • Loading branch information
n1try committed Nov 24, 2019
1 parent a78a689 commit b9ed91e375e1292963b9ff25ca54057b13a8e48e
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/image.js
@@ -20,7 +20,7 @@ module.exports = function(app, passport) {
router.get('/:id', function(req, res) {
var asJson = req.query.json;

Image.findOne({ _id: req.params.id }, { __v: false, ip: false, created: false, createdBy: false }, function(err, obj) {
Image.findOne({ _id: req.params.id }, { __v: false, ip: false, createdBy: false }, function(err, obj) {
if (err) return res.makeError(500, err.message, err);
if (!obj) return res.makeError(404, 'Image not found.');

0 comments on commit b9ed91e

Please sign in to comment.
You can’t perform that action at this time.