diff --git a/src/app/services/auth.service.ts b/src/app/services/auth.service.ts index 3c3143ef0..a76a178fd 100644 --- a/src/app/services/auth.service.ts +++ b/src/app/services/auth.service.ts @@ -1,4 +1,4 @@ -import { Injectable } from '@angular/core'; +import { Injectable, ErrorHandler } from '@angular/core'; import { StorageService } from './storage.service'; import { HttpClient, HttpHeaders, HttpEventType } from '@angular/common/http'; import { LoginUserRespose, UserForm, UserSession } from '../models/user.model'; @@ -19,6 +19,7 @@ import { InitialsService } from './functions/initials.service'; import { PermissionService } from './permission.service'; import { ChatSystemService } from 'src/app/services/chat/chat-system.service'; import { HttpErrorHandle } from 'src/app/services/http-error-handle.service'; +import { captureException } from '@sentry/angular'; @Injectable({ providedIn: 'root' }) @@ -46,7 +47,8 @@ export class AuthService { private initialsService: InitialsService, public p: PermissionService, public ChatSystemService: ChatSystemService, - private httpErroHandle: HttpErrorHandle) { + private httpErroHandle: HttpErrorHandle, + private errorHandler: ErrorHandler) { if (SessionStore.exist) { if(this.p.userPermission(this.p.permissionList.Chat.access) == true ) { @@ -93,7 +95,9 @@ export class AuthService { this.SetSession(response, user) } } catch (error) { + this.errorHandler.handleError(error); this.httpErroHandle.httpStatusHandle(error) + captureException(error); } finally { return response } diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index a9256d5a8..726ebb13e 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -4,4 +4,4 @@ import { doneITProd } from './suport/doneIt' import { DevDev } from './suport/dev' -export const environment: Environment = DevDev; +export const environment: Environment = oaprProd; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 16a865ce9..e2d79dff9 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,4 +4,4 @@ import { doneITDev } from './suport/doneIt' import { DevDev } from './suport/dev' -export const environment: Environment = DevDev \ No newline at end of file +export const environment: Environment = oaprDev \ No newline at end of file diff --git a/version/git-version.ts b/version/git-version.ts index 9ae5a60cf..aa540afef 100644 --- a/version/git-version.ts +++ b/version/git-version.ts @@ -1,12 +1,12 @@ export let versionData = { - "shortSHA": "bde8a32f4", - "SHA": "bde8a32f4d1e0f7720c6db9e546d084e1f6e4c08", + "shortSHA": "89e11c6fe", + "SHA": "89e11c6fe47a65bfe2c3975c3558023a8de784a3", "branch": "developer", "lastCommitAuthor": "'Peter Maquiran'", - "lastCommitTime": "'Fri Jun 30 10:44:41 2023 +0100'", - "lastCommitMessage": "fix", - "lastCommitNumber": "5023", + "lastCommitTime": "'Fri Jun 30 10:49:33 2023 +0100'", + "lastCommitMessage": "merge", + "lastCommitNumber": "5035", "change": "", - "changeStatus": "On branch developer\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: package-lock.json\n\tmodified: package.json\n\tmodified: src/app/app.component.ts\n\tmodified: src/app/app.module.ts\n\tmodified: src/app/modals/profile/profile.page.ts\n\tmodified: src/app/services/contacts.service.ts\n\tmodified: src/app/services/notifications.service.ts\n\tmodified: src/app/shared/header/header.page.html\n\tmodified: src/app/shared/header/header.page.ts\n\tmodified: src/environments/suport/oapr.ts\n\tnew file: src/firebase-config.ts\n\tmodified: version/git-version.ts", - "changeAuthor": "peter.maquiran" + "changeStatus": "On branch developer\nYour branch is up to date with 'origin/developer'.\n\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/services/auth.service.ts\n\tmodified: src/environments/environment.prod.ts\n\tmodified: src/environments/environment.ts", + "changeAuthor": "eudes.inacio" } \ No newline at end of file