add limit to files on publication

This commit is contained in:
Eudes Inácio
2023-12-06 17:01:00 +01:00
parent e8d28c68e8
commit 5dc86bf6c7
8 changed files with 568 additions and 68 deletions
+9 -6
View File
@@ -370,7 +370,7 @@ export class ChatService {
async refreshtoken() {
if(this.headers && SessionStore.user.ChatData) {
/* if(this.headers && SessionStore.user.ChatData) {
this.headers = this.headers.set('Authorization', 'Bearer ' + SessionStore.user.Authorization);
let options = {
headers: this.headers
@@ -406,10 +406,13 @@ export class ChatService {
})
} else {
setTimeout(async () => {
this.resetTimer();
await this.refreshtoken();
}, 60000)
if(SessionStore.user.Authorization != '') {
setTimeout(async () => {
this.resetTimer();
await this.refreshtoken();
}, 60000)
}
}
@@ -420,7 +423,7 @@ export class ChatService {
} else if (!this.headers) {
this.setheader()
this.refreshtoken()
}
} */
}