Skip to content

Commit 65d865a

Browse files
committed
fix: types error
1 parent 3e27349 commit 65d865a

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/provider/sessions.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@
3434
* └──────────────────────────────────────────────────────────────────────────────┘
3535
*/
3636

37-
import axios, { Axios, AxiosError } from 'axios';
37+
import axios, { AxiosInstance } from 'axios';
3838
import { Auth, ConfigService, ProviderSession } from '../config/env.config';
3939
import { Logger } from '../config/logger.config';
4040
import { execSync } from 'child_process';
41-
import { writeFileSync } from 'fs';
42-
import { join } from 'path';
4341

4442
type ResponseSuccess = { status: number; data?: any };
4543
type ResponseProvider = Promise<[ResponseSuccess?, Error?]>;
@@ -49,7 +47,7 @@ export class ProviderFiles {
4947

5048
private readonly logger = new Logger(this.configService, ProviderFiles.name);
5149

52-
private _client: Axios;
50+
private _client: AxiosInstance;
5351

5452
public get client() {
5553
return this._client;

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ export class WAStartupService {
16901690
responseType: 'arraybuffer',
16911691
});
16921692

1693-
mimetype = response.headers['content-type'];
1693+
mimetype = response.headers['content-type'] as string;
16941694
if (!ext) {
16951695
ext = mime.extension(mimetype) as string;
16961696
}

0 commit comments

Comments
 (0)