Fix for deprecated CIRA function

This commit is contained in:
panreyes 2025-10-25 19:08:28 +02:00 committed by GitHub
parent aed0bd9159
commit e6567a9dc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1385,6 +1385,11 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
case 'pong': { break; }
case 'getScript':
{
if (typeof parent.getCiraConfigurationScript !== 'function') {
obj.send('Function deprecated.');
break;
}
// Used by the agent to get configuration scripts.
if (command.type == 1) {
parent.getCiraConfigurationScript(obj.dbMeshKey, function (script) {