Fix for deprecated CIRA function (part 2)

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

View File

@ -1385,7 +1385,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
case 'pong': { break; }
case 'getScript':
{
if (typeof parent.getCiraConfigurationScript !== 'function') {
if (typeof parent.getCiraConfigurationScript !== 'function' || typeof parent.getCiraCleanupScript !== 'function') {
obj.send('Function deprecated.');
break;
}