/admin/plugins: Fix update check

This commit is contained in:
Marcel Klehr 2013-03-27 12:02:19 +01:00
parent d01a209cbf
commit c4d9a71156
4 changed files with 21 additions and 19 deletions

View file

@ -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: {}});