1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 23:30:05 +02:00

fix(portal-data): don't fallback on service slug

This commit is contained in:
Sérgio Ramos 2017-06-28 11:06:27 +01:00 committed by Judit Greskovits
parent a2e0100f5e
commit bb99662976

View File

@ -69,7 +69,7 @@ exports.toService = function (clientService) {
version_hash: clientService.hash || clientService.name, version_hash: clientService.hash || clientService.name,
deployment_group_id: clientService.deploymentGroupId, deployment_group_id: clientService.deploymentGroupId,
name: clientService.name, name: clientService.name,
slug: clientService.slug || '', slug: clientService.slug,
environment: clientService.environment || {}, environment: clientService.environment || {},
instance_ids: clientService.instances ? clientService.instances.map((instance) => { return instance.id; }) : [], instance_ids: clientService.instances ? clientService.instances.map((instance) => { return instance.id; }) : [],
service_dependency_ids: clientService.connections || [], service_dependency_ids: clientService.connections || [],