apostrophe-snippets
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -557,2 +557,6 @@ var async = require('async'); | ||
self.get(req, options, function(err, snippets) { | ||
// Put the snippets in id order | ||
if (req.query.ids) { | ||
snippets = self._apos.orderById(req.query.ids, snippets); | ||
} | ||
return res.send( | ||
@@ -559,0 +563,0 @@ JSON.stringify(_.map(snippets, function(snippet) { |
{ | ||
"name": "apostrophe-snippets", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "Reusable content snippets for the Apostrophe content management system. The blog and events modules are built on this foundation, which is also useful in and of itself.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -93,2 +93,3 @@ var _ = require('underscore'); | ||
if (item.by === 'id') { | ||
snippets = self.apos.orderById(item.ids, snippets); | ||
// Put them in the same order as the ids that were manually selected | ||
@@ -95,0 +96,0 @@ // (you can't do this with mongodb sort, so we do it here) |
81833
1694