Fix: Use correct callback to prevent monitoring sending job from hanging.
This commit is contained in:
parent
69573e56c5
commit
3df5509df0
|
@ -223,16 +223,16 @@ angular.module('ffffng')
|
||||||
Logger
|
Logger
|
||||||
.tag('monitoring', 'mail-sending')
|
.tag('monitoring', 'mail-sending')
|
||||||
.error('Error sending "' + name + '" mail for node: ' + mac, err);
|
.error('Error sending "' + name + '" mail for node: ' + mac, err);
|
||||||
return callback(err);
|
return mailCallback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!node) {
|
if (!node) {
|
||||||
Logger
|
Logger
|
||||||
.tag('monitoring', 'mail-sending')
|
.tag('monitoring', 'mail-sending')
|
||||||
.warn(
|
.debug(
|
||||||
'Node not found. Skipping sending of "' + name + '" mail: ' + mac
|
'Node not found. Skipping sending of "' + name + '" mail: ' + mac
|
||||||
);
|
);
|
||||||
return callback(null);
|
return mailCallback(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.monitoring && node.monitoringConfirmed) {
|
if (node.monitoring && node.monitoringConfirmed) {
|
||||||
|
|
Loading…
Reference in a new issue