fix(portal-api): don't propagate prometheus errors
This commit is contained in:
parent
5ae0b20c86
commit
bf86427609
@ -2530,7 +2530,7 @@ class Data extends EventEmitter {
|
|||||||
|
|
||||||
const handleMetrics = (err, metrics) => {
|
const handleMetrics = (err, metrics) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return cb(err);
|
return cb(null, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
cb(null, Data.formatMetrics(metrics));
|
cb(null, Data.formatMetrics(metrics));
|
||||||
|
Loading…
Reference in New Issue
Block a user