mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: eslint max-len
This commit is contained in:
committed by
Julian Lam
parent
5c2f0f0557
commit
cc9d6fd08b
@@ -22,10 +22,13 @@ pluginsController.get = async function (req, res) {
|
||||
memo[cur.label] = cur.value;
|
||||
return memo;
|
||||
}, {});
|
||||
const trendingPlugins = all.filter(plugin => plugin && Object.keys(trendingScores).includes(plugin.id)).sort((a, b) => trendingScores[b.id] - trendingScores[a.id]).map((plugin) => {
|
||||
plugin.downloads = trendingScores[plugin.id];
|
||||
return plugin;
|
||||
});
|
||||
const trendingPlugins = all
|
||||
.filter(plugin => plugin && Object.keys(trendingScores).includes(plugin.id))
|
||||
.sort((a, b) => trendingScores[b.id] - trendingScores[a.id])
|
||||
.map((plugin) => {
|
||||
plugin.downloads = trendingScores[plugin.id];
|
||||
return plugin;
|
||||
});
|
||||
|
||||
res.render('admin/extend/plugins', {
|
||||
installed: installedPlugins,
|
||||
|
||||
Reference in New Issue
Block a user