From f259e2cd7848bdb835dd140fa36da75607481b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eudes=20In=C3=A1cio?= Date: Wed, 19 Jun 2024 15:00:01 +0100 Subject: [PATCH 1/2] bug intercepting new api solved --- src/app/interceptors/token.interceptors.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/interceptors/token.interceptors.ts b/src/app/interceptors/token.interceptors.ts index b0916499f..3097ebb91 100644 --- a/src/app/interceptors/token.interceptors.ts +++ b/src/app/interceptors/token.interceptors.ts @@ -23,7 +23,7 @@ export class TokenInterceptor implements HttpInterceptor { null ); - private excludedDomains = ['Login', environment.apiChatUrl]; // Add the domains you want to exclude + private excludedDomains = [ environment.apiChatUrl]; // Add the domains you want to exclude constructor(private http: HttpClient, private router: Router,private httpErrorHandle: HttpErrorHandle,) { } @@ -42,9 +42,13 @@ export class TokenInterceptor implements HttpInterceptor { } return next.handle(request).pipe( + catchError((error) => { + console.log('interceptor ',error) if (error instanceof HttpErrorResponse && error.status === 401) { return this.handle401Error(request, next); + } else if (error.url.includes('https://gdapi-dev.dyndns.info/stage/api/v2') && error.status === 0){ + return this.handle401Error(request, next); } else { return throwError(error); } From dadaa4ab7a451a822326ee7d2e5f8aa171d4d3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eudes=20In=C3=A1cio?= Date: Wed, 19 Jun 2024 15:57:40 +0100 Subject: [PATCH 2/2] remoev blank field from approval form --- .../edit-event-to-approve/edit-event.page.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html b/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html index 3ca31acec..828ee5dd4 100644 --- a/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html +++ b/src/app/shared/gabinete-digital/edit-event-to-approve/edit-event.page.html @@ -184,7 +184,7 @@ --> - +