Skip to content

Commit

Permalink
changed deploy-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MocStepan committed May 9, 2024
1 parent bb1efaa commit 3c0a2c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{ secrets.HEROKU_FRONTEND_NAME }}
heroku_app_name: ${{ secrets.HEROKU_BACKEND_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
appdir: 'frontend'
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {inject, Injectable} from "@angular/core";
import {catchError, Observable, throwError} from "rxjs";
import {NotificationService} from "../../notification/service/notification.service";
import {Router} from "@angular/router";
import {AuthService} from "../../../auth/service/auth.service";

@Injectable()
export class HttpErrorInterceptor implements HttpInterceptor {
Expand All @@ -14,6 +15,7 @@ export class HttpErrorInterceptor implements HttpInterceptor {
catchError((error: HttpErrorResponse) => {
if (error.status == 401) {
this.notificationService.errorNotification("You do not have access to this feature, please login")
sessionStorage.removeItem('auth')
this.router.navigate(['/signIn'])
}
return throwError(error)
Expand Down

0 comments on commit 3c0a2c6

Please sign in to comment.