Refactor signReport method signature
This commit is contained in:
parent
2aaa327a01
commit
c1f49915ba
1 changed files with 2 additions and 5 deletions
|
@ -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<APIResponse<string>>;
|
||||
signReport(reportId: number, token: string): Promise<APIResponse<string>>;
|
||||
}
|
||||
|
||||
/** An instance of the API */
|
||||
|
@ -615,5 +612,5 @@ export const api: API = {
|
|||
} catch (e) {
|
||||
return { success: false, message: "Failed to sign report" };
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue