Skip to content

Commit d2ded57

Browse files
committed
Metrics operation_id
1 parent 6b14a5a commit d2ded57

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/routes/(protected)/metrics/+page.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,12 @@
1212
const apiExplorerUrl = $page.data.externalLinks?.API_EXPLORER_URL || "https://apiexplorer-ii-sandbox.openbankproject.com";
1313
1414
function getOperationId(metric: any): string {
15-
const version = metric.implemented_in_version || "";
16-
const partialFunction = metric.implemented_by_partial_function || "";
17-
if (version && partialFunction) {
18-
return `OBP${version}-${partialFunction}`;
19-
}
20-
return partialFunction || "N/A";
15+
return metric.operation_id || "Err";
2116
}
2217
2318
function getApiExplorerLink(metric: any): string {
2419
const operationId = getOperationId(metric);
25-
if (operationId === "N/A") return "";
20+
if (operationId === "Err") return "";
2621
return `${apiExplorerUrl}/resource-docs/OBPv6.0.0?operationid=${operationId}`;
2722
}
2823

0 commit comments

Comments
 (0)