From c1f49915baff3271ded8d5b33bf8f57b52715db7 Mon Sep 17 00:00:00 2001 From: Davenludd Date: Fri, 29 Mar 2024 18:29:38 +0100 Subject: [PATCH] Refactor signReport method signature --- frontend/src/API/API.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/API/API.ts b/frontend/src/API/API.ts index 886c957..0a85e70 100644 --- a/frontend/src/API/API.ts +++ b/frontend/src/API/API.ts @@ -161,10 +161,7 @@ interface API { * @param {number} reportId The id of the report to sign * @param {string} token The authentication token */ - signReport( - reportId: number, - token: string, - ): Promise>; + signReport(reportId: number, token: string): Promise>; } /** An instance of the API */ @@ -615,5 +612,5 @@ export const api: API = { } catch (e) { return { success: false, message: "Failed to sign report" }; } - } + }, };