Last active
December 21, 2015 08:59
-
-
Save timhudson/6282294 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var query = {$or: [ | |
{_id: req.params.id, app: req.app.id}, | |
{altId: req.params.id, app: req.app.id} | |
]} | |
Show.findOne(query, function(err, show) { | |
// send them the show | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
_id: ObjectId('5124f5bcd214260200000117'), | |
altId: '18', | |
title: 'Compulsive Love', | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment