mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
lint: src/node/hooks/express/adminplugins.js
This commit is contained in:
parent
3a586a7aad
commit
fbc70c1276
1 changed files with 1 additions and 2 deletions
|
@ -4,7 +4,6 @@ const eejs = require('../../eejs');
|
|||
const settings = require('../../utils/Settings');
|
||||
const installer = require('../../../static/js/pluginfw/installer');
|
||||
const plugins = require('../../../static/js/pluginfw/plugin_defs');
|
||||
const _ = require('underscore');
|
||||
const semver = require('semver');
|
||||
const UpdateCheck = require('../../utils/UpdateCheck');
|
||||
|
||||
|
@ -51,7 +50,7 @@ exports.socketio = (hookName, args, cb) => {
|
|||
try {
|
||||
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;
|
||||
|
||||
const latestVersion = results[plugin].version;
|
||||
|
|
Loading…
Reference in a new issue