mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
fix(portal-api): prevent crash on cp-watcher when no services
This commit is contained in:
parent
2a34632269
commit
eddc8712b0
@ -73,6 +73,10 @@ module.exports = class ContainerPilotWatcher extends Events {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (!services || !services.length) {
|
||||
return next();
|
||||
}
|
||||
|
||||
VAsync.forEachParallel({
|
||||
inputs: services,
|
||||
func: getInstances
|
||||
|
Loading…
Reference in New Issue
Block a user