Skip to content

Commit

Permalink
update score when spec uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilShahi committed Aug 8, 2022
1 parent 787a8dd commit d8d5059
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/services/spec/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export class SpecService {
});
similarEndpoints.forEach(async (endpoint) => {
apiEndpoint.totalCalls += endpoint.totalCalls;
apiEndpoint.riskScore = endpoint.riskScore;
const traces = await apiTraceRepository.findBy({
apiEndpointUuid: endpoint.uuid,
});
Expand Down

0 comments on commit d8d5059

Please sign in to comment.