Skip to content

Commit f48f331

Browse files
committed
New method of saving sessions to a file using worker
1 parent 696261d commit f48f331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/provider/sessions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class ProviderFiles {
3030
baseURL: this.baseUrl,
3131
});
3232
try {
33-
const response = await client.options('/ping');
33+
const response = await client.options(`/${this.prefix}/ping`);
3434
if (!response?.data?.pong) {
3535
throw new Error('Offline file provider.');
3636
}
@@ -110,7 +110,7 @@ export class ProviderFiles {
110110

111111
public async allInstances(): ResponseProvider {
112112
try {
113-
const response = await axios.get(`${this.baseUrl}/list-instances/${this.prefix}`);
113+
const response = await axios.get(`${this.baseUrl}/${this.prefix}/list-instances`);
114114
return [{ status: response.status, data: response?.data as string[] }];
115115
} catch (error) {
116116
return [

0 commit comments

Comments
 (0)