Fix setModulePendingUpdated with plugins

This commit is contained in:
GogoVega 2024-10-31 17:12:13 +01:00
parent 42382e1a03
commit 443492d6eb
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B

View File

@ -73,7 +73,13 @@ RED.nodes = (function() {
var exports = {
setModulePendingUpdated: function(module,version) {
moduleList[module].pending_version = version;
if (!!RED.plugins.getModule(module)) {
// The module updated is a plugin
RED.plugins.getModule(module).pending_version = version;
} else {
moduleList[module].pending_version = version;
}
RED.events.emit("registry:module-updated",{module:module,version:version});
},
getModule: function(module) {