New method of saving sessions to a file using worker

This commit is contained in:
Davidson Gomes 2024-06-01 13:28:29 -03:00
parent 696261d749
commit f48f331d43

View File

@ -30,7 +30,7 @@ export class ProviderFiles {
baseURL: this.baseUrl,
});
try {
const response = await client.options('/ping');
const response = await client.options(`/${this.prefix}/ping`);
if (!response?.data?.pong) {
throw new Error('Offline file provider.');
}
@ -110,7 +110,7 @@ export class ProviderFiles {
public async allInstances(): ResponseProvider {
try {
const response = await axios.get(`${this.baseUrl}/list-instances/${this.prefix}`);
const response = await axios.get(`${this.baseUrl}/${this.prefix}/list-instances`);
return [{ status: response.status, data: response?.data as string[] }];
} catch (error) {
return [