Remove relevant console log,

This commit is contained in:
Eudes Inácio
2022-04-28 09:32:27 +01:00
parent 3021e8b0e1
commit 2826cea9df
153 changed files with 1001 additions and 1132 deletions
+18 -18
View File
@@ -80,7 +80,7 @@ export class AuthService {
try {
response = await this.http.post<LoginUserRespose>(environment.apiURL + "UserAuthentication/Login", '', this.opts).toPromise();
console.log(response);
if(saveSession) {
this.SetSession(response, user)
@@ -96,8 +96,8 @@ export class AuthService {
SetSession(response: LoginUserRespose, user:UserForm) {
const session: UserSession = Object.assign(SessionStore.user, response)
console.log('SETSESSION', response, user)
console.log('SETSESSION 2', session)
if (response) {
@@ -132,7 +132,7 @@ export class AuthService {
session.BasicAuthKey = user.BasicAuthKey
console.log(session)
SessionStore.reset(session)
this.ValidatedUser = SessionStore.user;
@@ -164,13 +164,13 @@ export class AuthService {
let responseChat = await this.httpService.post('login', postData).toPromise();
if(responseChat) {
console.log()
this.ValidatedUserChat = responseChat;
localStorage.setItem('userChat', JSON.stringify(responseChat));
this.storageService.store(AuthConnstants.AUTH, responseChat);
}
else{
console.log('Network error');
this.presentAlert('Network error');
}
@@ -185,22 +185,22 @@ export class AuthService {
loginToChatWs() {
setTimeout(()=>{
console.log('loginToChatWs')
this.WsChatService.connect();
this.WsChatService.login().then((message: any) => {
console.log('loginToChatWs',message)
SessionStore.user.RochetChatUserId = message.result.id
SessionStore.save()
// console.log('user session', SessionStore.user)
//
this.WsChatService.setStatus('online')
// alert('wsLogin')
}).catch((message) => {
console.log('rocket chat login failed', message)
// alert('ws login failed')
})
@@ -216,9 +216,9 @@ export class AuthService {
let guid: any = await this.AttachmentsService.uploadFile(formData).toPromise()
message.file.guid = guid.path
console.log('========================================',guid)
// await this.storage.set(guid.path, message.file.image_url).then(() => {
// console.log('add picture to chat IMAGE SAVED')
//
// // message.getFileFromDb()
// });
@@ -226,7 +226,7 @@ export class AuthService {
return true
} catch(e) {
console.log('failed to upload to server', e)
return false
}
@@ -240,7 +240,7 @@ export class AuthService {
return true
} catch(e) {
console.log(e)
return false
}
}
@@ -251,16 +251,16 @@ export class AuthService {
this.NfService.downloadFileMsg = async (message: MessageService, room?: RoomService) => {
// console.log('FILE TYPE', message.file.type)
//
let downloadFile = "";
if (message.file.type == "application/img") {
const event: any = await this.AttachmentsService.downloadFile(message.file.guid).toPromise();
console.log('FILE TYPE 22', message.file.guid)
if (event.type === HttpEventType.DownloadProgress) {
//this.downloadProgess = Math.round((100 * event.loaded) / event.total);
// console.log('FILE TYPE 33', message.file.type)
//
return true
} else if (event.type === HttpEventType.Response) {
downloadFile = 'data:image/jpeg;base64,' + btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), ''));
@@ -272,7 +272,7 @@ export class AuthService {
}
await this.storage.set(message.file.guid, downloadFile).then(() => {
// console.log('IMAGE SAVED')
//
});
return true
}