From 8835175fb3547e03048caa0350f46b0e3d224027 Mon Sep 17 00:00:00 2001 From: printcalc-ci Date: Wed, 25 Mar 2026 10:46:11 +0000 Subject: [PATCH] style: apply prettier formatting --- .../app/core/interceptors/server-origin.interceptor.ts | 4 +++- .../src/app/features/shop/services/shop.service.spec.ts | 6 ++++-- frontend/src/app/features/shop/services/shop.service.ts | 9 +++------ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/core/interceptors/server-origin.interceptor.ts b/frontend/src/app/core/interceptors/server-origin.interceptor.ts index 656c291..5a1e3ca 100644 --- a/frontend/src/app/core/interceptors/server-origin.interceptor.ts +++ b/frontend/src/app/core/interceptors/server-origin.interceptor.ts @@ -137,7 +137,9 @@ export const serverOriginInterceptor: HttpInterceptorFn = (req, next) => { return next(req); } - const request = inject(REQUEST, { optional: true }) as ServerRequestLike | null; + const request = inject(REQUEST, { + optional: true, + }) as ServerRequestLike | null; const origin = resolveApiOrigin(request, req.url); if (!origin) { return next(req); diff --git a/frontend/src/app/features/shop/services/shop.service.spec.ts b/frontend/src/app/features/shop/services/shop.service.spec.ts index 1c4ef78..9ed2b84 100644 --- a/frontend/src/app/features/shop/services/shop.service.spec.ts +++ b/frontend/src/app/features/shop/services/shop.service.spec.ts @@ -220,7 +220,8 @@ describe('ShopService', () => { next: (product) => { response = product; }, - error: () => fail('Expected stale slug tails to resolve from the uuid prefix'), + error: () => + fail('Expected stale slug tails to resolve from the uuid prefix'), }); const request = httpMock.expectOne((request) => { @@ -243,7 +244,8 @@ describe('ShopService', () => { next: (product) => { response = product; }, - error: () => fail('Expected bare uuid path to resolve from the uuid prefix'), + error: () => + fail('Expected bare uuid path to resolve from the uuid prefix'), }); const request = httpMock.expectOne((request) => { diff --git a/frontend/src/app/features/shop/services/shop.service.ts b/frontend/src/app/features/shop/services/shop.service.ts index f21949a..6f4cffe 100644 --- a/frontend/src/app/features/shop/services/shop.service.ts +++ b/frontend/src/app/features/shop/services/shop.service.ts @@ -295,12 +295,9 @@ export class ShopService { ? `${this.apiUrl}/products/by-id-prefix/${encodeURIComponent(productIdPrefix)}` : `${this.apiUrl}/products/by-path/${encodeURIComponent(normalizedPath)}`; - return this.http.get( - endpoint, - { - params: this.buildLangParams(), - }, - ); + return this.http.get(endpoint, { + params: this.buildLangParams(), + }); } private normalizePublicPath(value: string | null | undefined): string {