lint: src/node/hooks/express/adminplugins.js

pull/4667/head
John McLear 2021-01-21 21:06:52 +00:00 committed by Richard Hansen
parent 3a586a7aad
commit fbc70c1276
1 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ const eejs = require('../../eejs');
const settings = require('../../utils/Settings'); const settings = require('../../utils/Settings');
const installer = require('../../../static/js/pluginfw/installer'); const installer = require('../../../static/js/pluginfw/installer');
const plugins = require('../../../static/js/pluginfw/plugin_defs'); const plugins = require('../../../static/js/pluginfw/plugin_defs');
const _ = require('underscore');
const semver = require('semver'); const semver = require('semver');
const UpdateCheck = require('../../utils/UpdateCheck'); const UpdateCheck = require('../../utils/UpdateCheck');
@ -51,7 +50,7 @@ exports.socketio = (hookName, args, cb) => {
try { try {
const results = await installer.getAvailablePlugins(/* maxCacheAge:*/ 60 * 10); const results = await installer.getAvailablePlugins(/* maxCacheAge:*/ 60 * 10);
const updatable = _(plugins.plugins).keys().filter((plugin) => { const updatable = Object.keys(plugins.plugins).filter((plugin) => {
if (!results[plugin]) return false; if (!results[plugin]) return false;
const latestVersion = results[plugin].version; const latestVersion = results[plugin].version;