Skip to content

Commit 67dcc5a

Browse files
committed
fix: missing imports
1 parent 8b199a4 commit 67dcc5a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

ui/src/infrastructure/http.interceptors.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import {
44
HttpInterceptorFn,
55
HttpRequest
66
} from '@angular/common/http';
7+
import { inject } from '@angular/core';
8+
import { catchError, throwError } from 'rxjs';
9+
10+
import {
11+
NotificationService
12+
} from 'infrastructure/notification.service';
713

814
interface ApiErrorResponse {
915
platform?: string;
@@ -12,13 +18,13 @@ interface ApiErrorResponse {
1218
}
1319

1420
export const httpErrorInterceptor: HttpInterceptorFn = (
15-
req: HttpRequest<unknown>,
21+
request: HttpRequest<unknown>,
1622
next: HttpHandlerFn
1723
) => {
1824
const notificationService =
1925
inject(NotificationService);
2026

21-
return next(req).pipe(
27+
return next(request).pipe(
2228
catchError((error: HttpErrorResponse) => {
2329
const response =
2430
error.error as ApiErrorResponse | undefined;

0 commit comments

Comments
 (0)