Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions components/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,7 @@ async function fetchLogsFromArchive(
tasks: lmfsEndPoint,
};
const endPoint = labelToEndpoint[label];
const labelToApi = {
vehicles: "collectVehicleCalls",
trips: "collectTripCalls",
deliveryVehicles: "collectDeliveryVehicleCalls",
tasks: "collectTaskCalls",
};
const api = labelToApi[label];
if (!api) {
console.error(`Unknown label: ${label}`);
return [];
}
const api = "collectCalls";
const config = {
url: `${endPoint}/providers/${auth.getProjectId()}/${label}/${labelValue}:${api}`,
headers: {
Expand Down