mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
fix(portal-api): fix branch health resolution
This commit is contained in:
parent
a6abc105a9
commit
fcd0e2820a
@ -201,6 +201,7 @@ module.exports = class ContainerPilotWatcher extends Events {
|
||||
const status = JSON.parse(payload);
|
||||
next(null, status);
|
||||
} catch (err) {
|
||||
this.emit('error', err);
|
||||
next();
|
||||
}
|
||||
});
|
||||
@ -368,8 +369,8 @@ module.exports = class ContainerPilotWatcher extends Events {
|
||||
}
|
||||
|
||||
const almostJobNameRegexp = new RegExp(`${name}-.*`);
|
||||
const almostServiceJobs = jobNames.filter((n) => {
|
||||
return almostJobNameRegexp.test(n);
|
||||
const almostServiceJobs = jobNames.filter(({ Name }) => {
|
||||
return almostJobNameRegexp.test(Name);
|
||||
});
|
||||
|
||||
if (almostServiceJobs.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user