Skip to content

Commit 3851268

Browse files
committed
Add download counts to catalogue
1 parent 46bf05a commit 3851268

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tasks/generate_catalog.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const viewster = require('../lib/view')
1212
description: 1,
1313
keywords: 1,
1414
types: 1,
15-
categories: 1
15+
categories: 1,
16+
downloads: 1
1617
})
1718
const modules = things.map(function (t) {
1819
return {
@@ -23,7 +24,8 @@ const viewster = require('../lib/view')
2324
types: t.types,
2425
keywords: t.keywords,
2526
categories: t.categories,
26-
url: 'https://flows.nodered.org/node/' + t._id
27+
url: 'https://flows.nodered.org/node/' + t._id,
28+
downloads: t.downloads
2729
}
2830
})
2931

0 commit comments

Comments
 (0)