mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
remove from login method for test sentry and add s to websocket enviremnt domain
This commit is contained in:
@@ -16,7 +16,6 @@ import { MessageModel, DeleteMessageModel } from '../../models/beast-orm';
|
||||
import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service';
|
||||
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
|
||||
import { ChatService } from 'src/app/services/chat.service';
|
||||
import * as Sentry from "@sentry/capacitor";
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -100,23 +99,7 @@ export class LoginPage implements OnInit {
|
||||
this.notificatinsservice.getAndpostToken(this.username);
|
||||
}
|
||||
|
||||
failFunction() {
|
||||
const foo: any = null;
|
||||
const bar = foo.test;
|
||||
}
|
||||
|
||||
throwJsError() {
|
||||
throw new Error('Iam a manual error!')
|
||||
}
|
||||
|
||||
captureSentryError(){
|
||||
Sentry.captureException('Directly capture the error with sentry');
|
||||
}
|
||||
|
||||
async Login() {
|
||||
this.failFunction();
|
||||
this.throwJsError();
|
||||
this.captureSentryError();
|
||||
|
||||
|
||||
if (this.validateUsername()) {
|
||||
|
||||
@@ -5,7 +5,7 @@ export const environment = {
|
||||
// apiChatUrl: 'http://192.168.0.29:3000/api/v1/',
|
||||
// apiWsChatUrl: 'wss://192.168.0.29:3000/websocket',
|
||||
apiChatUrl: 'https://gd-chat.oapr.gov.ao/api/v1/',
|
||||
apiWsChatUrl: 'ws://gd-chat.oapr.gov.ao/websocket',
|
||||
apiWsChatUrl: 'wss://gd-chat.oapr.gov.ao/websocket',
|
||||
/* apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
||||
apiWsChatUrl: 'wss://www.tabularium.pt/websocket', */
|
||||
// apiChatUrl: 'https://www.tabularium.pt/api/v1/',
|
||||
|
||||
Reference in New Issue
Block a user