Skip to content

Instantly share code, notes, and snippets.

View mickhansen's full-sized avatar

Mick Hansen mickhansen

  • Copenhagen, Denmark
View GitHub Profile
@mickhansen
mickhansen / optimize.js
Last active December 29, 2015 12:25 — forked from heijmerikx/optimize.js
router.get('/', function(req, res, next) {
models.Blog.findAll({
where: {
published: true
},
limit: 3,
order: [["createdAt","DESC"]],
include: [
{ model: models.Photo }
]