mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
/admin/plugins: Fix update check
This commit is contained in:
parent
d01a209cbf
commit
c4d9a71156
4 changed files with 21 additions and 19 deletions
|
@ -35,9 +35,9 @@ exports.socketio = function (hook_name, args, cb) {
|
|||
socket.emit("results:installed", {installed: installed});
|
||||
});
|
||||
|
||||
socket.on("getUpdatable", function() {
|
||||
socket.on("checkUpdates", function() {
|
||||
// Check plugins for updates
|
||||
installer.getAvailable(/*maxCacheAge:*/60*10, function(er, results) {
|
||||
installer.getAvailablePlugins(/*maxCacheAge:*/60*10, function(er, results) {
|
||||
if(er) {
|
||||
console.warn(er);
|
||||
socket.emit("results:updatable", {updatable: {}});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue