style: apply prettier formatting
All checks were successful
PR Checks / prettier-autofix (pull_request) Successful in 12s
PR Checks / security-sast (pull_request) Successful in 52s
PR Checks / test-frontend (pull_request) Successful in 1m17s
PR Checks / test-backend (pull_request) Successful in 27s

This commit is contained in:
printcalc-ci
2026-03-25 10:46:11 +00:00
parent 28c3abdb4a
commit 8835175fb3
3 changed files with 10 additions and 9 deletions

View File

@@ -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);

View File

@@ -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) => {

View File

@@ -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<ShopProductDetail>(
endpoint,
{
params: this.buildLangParams(),
},
);
return this.http.get<ShopProductDetail>(endpoint, {
params: this.buildLangParams(),
});
}
private normalizePublicPath(value: string | null | undefined): string {