Pick up changed ping API

This commit is contained in:
Andras Schmelczer 2025-03-29 12:28:12 +00:00
parent 7413299cec
commit c5af0d40d8
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 20 additions and 7 deletions

View file

@ -284,14 +284,22 @@ export class SyncService {
}
public async checkConnection(): Promise<CheckConnectionResult> {
const { vaultName } = this.settings.getSettings();
try {
const response = await this.pingClient.GET("/ping", {
params: {
header: {
authorization: `Bearer ${this.settings.getSettings().token}`
const response = await this.pingClient.GET(
"/vaults/{vault_id}/ping",
{
params: {
header: {
authorization: `Bearer ${this.settings.getSettings().token}`
},
path: {
vault_id: vaultName
}
}
}
});
);
this.logger.debug(
`Ping response: ${JSON.stringify(response.data)}`