Skip to content

Commit

Permalink
New method of saving sessions to a file using worker
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed Jun 1, 2024
1 parent 696261d commit f48f331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/provider/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down Expand Up @@ -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 [
Expand Down

0 comments on commit f48f331

Please sign in to comment.