From 4ab97f4c9609809812f1a2a22e09734f157491a7 Mon Sep 17 00:00:00 2001 From: Ethel Bao Date: Tue, 4 Oct 2022 07:54:15 -0700 Subject: [PATCH] switch collect endpoint to patch change cl/475918997 --- components/logging.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/components/logging.js b/components/logging.js index 1be47aa..c5118e0 100644 --- a/components/logging.js +++ b/components/logging.js @@ -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: {