Refactor signReport method signature

This commit is contained in:
Davenludd 2024-03-29 18:29:38 +01:00
parent 2aaa327a01
commit c1f49915ba

View file

@ -161,10 +161,7 @@ interface API {
* @param {number} reportId The id of the report to sign * @param {number} reportId The id of the report to sign
* @param {string} token The authentication token * @param {string} token The authentication token
*/ */
signReport( signReport(reportId: number, token: string): Promise<APIResponse<string>>;
reportId: number,
token: string,
): Promise<APIResponse<string>>;
} }
/** An instance of the API */ /** An instance of the API */
@ -615,5 +612,5 @@ export const api: API = {
} catch (e) { } catch (e) {
return { success: false, message: "Failed to sign report" }; return { success: false, message: "Failed to sign report" };
} }
} },
}; };