Skip to content

Commit

Permalink
fix: modify the depth for down stream services (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
GraceRuan committed Sep 18, 2024
1 parent ae331d3 commit 4483caf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/collection/account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class AccountService {
await this.graphRepository.getDownstreamVertex<ServiceDto>(
account.vertex.toString(),
CollectionNameEnum.service,
3,
1,
);
for (const service of downstreamServices) {
const serviceName = service.collection.name;
Expand Down Expand Up @@ -344,7 +344,7 @@ export class AccountService {
await this.graphRepository.getDownstreamVertex<ServiceDto>(
account.vertex.toString(),
CollectionNameEnum.service,
3,
1,
);
if (downstreamServices) {
for (const service of downstreamServices) {
Expand All @@ -353,7 +353,7 @@ export class AccountService {
await this.graphRepository.getUpstreamVertex<ProjectDto>(
service.collection.vertex.toString(),
CollectionNameEnum.project,
null,
['component'],
);
const projectName = projectDtoArr[0].collection.name;
try {
Expand Down

0 comments on commit 4483caf

Please sign in to comment.