Last active
December 25, 2017 20:13
-
-
Save jwhitehorn/fff339b2930d7833b31f29b890a0c353 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| //... | |
| 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