Code quality improvements and cleanup + Implemented ChatService
Some checks failed
Setup testing environment and test the code / build (push) Has been cancelled
Some checks failed
Setup testing environment and test the code / build (push) Has been cancelled
This commit is contained in:
@@ -15,13 +15,13 @@ export class FileUploadService {
|
||||
client: AxiosInstance;
|
||||
cdnClient: AxiosInstance;
|
||||
|
||||
constructor(token: string, private httpClientOverwrite: AxiosInstance | null, private cdnHttpClientOverwrite: AxiosInstance | null) {
|
||||
this.client = (httpClientOverwrite ?? getClient(false)).create({
|
||||
constructor(token: string) {
|
||||
this.client = getClient(false).create({
|
||||
headers: {
|
||||
"Authorization": token
|
||||
}
|
||||
})
|
||||
this.cdnClient = (cdnHttpClientOverwrite ?? getClient(true)).create({
|
||||
this.cdnClient = getClient(true).create({
|
||||
headers: {
|
||||
"Authorization": token
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user