Skip to content

Instantly share code, notes, and snippets.

@jwhitehorn
Last active December 25, 2017 20:13
Show Gist options
  • Save jwhitehorn/fff339b2930d7833b31f29b890a0c353 to your computer and use it in GitHub Desktop.
Save jwhitehorn/fff339b2930d7833b31f29b890a0c353 to your computer and use it in GitHub Desktop.
//...
app.get('/api/updates/:model', function (req, res) {
var filter = {};
if(req.query.timestamp){
filter['updated_at'] = onionrm.gte(req.query.timestamp);
}
//...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment