Limit sitemap list of fires
This commit is contained in:
parent
f5d43dba76
commit
73588a67d2
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ sitemaps.add('/sitemap.xml', () => {
|
||||||
});
|
});
|
||||||
}); */
|
}); */
|
||||||
|
|
||||||
Fires.find().fetch().forEach((fire) => {
|
Fires.find({}, { limit: 100, sort: { createdAt: -1 } }).fetch().forEach((fire) => {
|
||||||
// Search the last comment of tha fire
|
// Search the last comment of tha fire
|
||||||
const lastComment = Comments.getCollection().findOne({ referenceId: `fire-${fire._id}` }, { sort: { createdAt: -1 } });
|
const lastComment = Comments.getCollection().findOne({ referenceId: `fire-${fire._id}` }, { sort: { createdAt: -1 } });
|
||||||
out.push({
|
out.push({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue