From ec3748343d456234265f8bee35075fd6989a53c7 Mon Sep 17 00:00:00 2001 From: Jonh Alex <122692601+Jonhvmp@users.noreply.github.com> Date: Sat, 5 Oct 2024 03:49:32 -0300 Subject: [PATCH] Update hydra-api.ts --- src/main/services/hydra-api.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/services/hydra-api.ts b/src/main/services/hydra-api.ts index cba6d874..ac3d153a 100644 --- a/src/main/services/hydra-api.ts +++ b/src/main/services/hydra-api.ts @@ -227,9 +227,9 @@ export class HydraApi { throw err; }; - static async get( + static async get( url: string, - params?: Record, + params?: any, options?: HydraApiOptions ) { if (!options || options.needsAuth) { @@ -243,9 +243,9 @@ export class HydraApi { .catch(this.handleUnauthorizedError); } - static async post( + static async post( url: string, - data?: Record, + data?: any, options?: HydraApiOptions ) { if (!options || options.needsAuth) { @@ -259,9 +259,9 @@ export class HydraApi { .catch(this.handleUnauthorizedError); } - static async put( + static async put( url: string, - data?: Record, + data?: any, options?: HydraApiOptions ) { if (!options || options.needsAuth) { @@ -275,9 +275,9 @@ export class HydraApi { .catch(this.handleUnauthorizedError); } - static async patch( + static async patch( url: string, - data?: Record, + data?: any, options?: HydraApiOptions ) { if (!options || options.needsAuth) { @@ -291,7 +291,7 @@ export class HydraApi { .catch(this.handleUnauthorizedError); } - static async delete(url: string, options?: HydraApiOptions) { + static async delete(url: string, options?: HydraApiOptions) { if (!options || options.needsAuth) { if (!this.isLoggedIn()) throw new UserNotLoggedInError(); await this.revalidateAccessTokenIfExpired();