fix: Set '@typescript-eslint/return-await' rule to 'always' for FE (no-changelog) (#8373)
This commit is contained in:
@@ -4,20 +4,20 @@ import { makeRestApiRequest } from '@/utils/apiUtils';
|
||||
export async function getMfaQR(
|
||||
context: IRestApiContext,
|
||||
): Promise<{ qrCode: string; secret: string; recoveryCodes: string[] }> {
|
||||
return makeRestApiRequest(context, 'GET', '/mfa/qr');
|
||||
return await makeRestApiRequest(context, 'GET', '/mfa/qr');
|
||||
}
|
||||
|
||||
export async function enableMfa(context: IRestApiContext, data: { token: string }): Promise<void> {
|
||||
return makeRestApiRequest(context, 'POST', '/mfa/enable', data);
|
||||
return await makeRestApiRequest(context, 'POST', '/mfa/enable', data);
|
||||
}
|
||||
|
||||
export async function verifyMfaToken(
|
||||
context: IRestApiContext,
|
||||
data: { token: string },
|
||||
): Promise<void> {
|
||||
return makeRestApiRequest(context, 'POST', '/mfa/verify', data);
|
||||
return await makeRestApiRequest(context, 'POST', '/mfa/verify', data);
|
||||
}
|
||||
|
||||
export async function disableMfa(context: IRestApiContext): Promise<void> {
|
||||
return makeRestApiRequest(context, 'DELETE', '/mfa/disable');
|
||||
return await makeRestApiRequest(context, 'DELETE', '/mfa/disable');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user