소스 검색

clean code

Yuki Takei 11 달 전
부모
커밋
e4a6ba38fa
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      apps/app/src/features/opentelemetry/server/anonymization/handlers/page-api-handler.ts

+ 3 - 3
apps/app/src/features/opentelemetry/server/anonymization/handlers/page-api-handler.ts

@@ -41,9 +41,9 @@ export const pageApiModule: AnonymizationModule = {
 
       // Determine endpoint type for logging
       let endpointType = 'page API';
-      if (url.includes('/_api/v3/pages/list')) endpointType = 'pages/list';
-      else if (url.includes('/_api/v3/pages/subordinated-list')) endpointType = 'pages/subordinated-list';
-      else if (url.includes('/_api/v3/page/check-page-existence')) endpointType = 'page/check-page-existence';
+      if (url.includes('/_api/v3/pages/list')) endpointType = '/pages/list';
+      else if (url.includes('/_api/v3/pages/subordinated-list')) endpointType = '/pages/subordinated-list';
+      else if (url.includes('/_api/v3/page/check-page-existence')) endpointType = '/page/check-page-existence';
 
       logger.debug(`Anonymized ${endpointType} URL: ${url} -> ${anonymizedUrl}`);
     }