I have this service:
async suppressAccount(account: string): Promise<string> {
return await Api.getData(
this.accountApiUrl + account, {timeout: 60000}).then(
(response) => response.data.suppressStatus
);
}
It's called with:
const suppressAccount = this.reissueCertService.suppressAccount(
this.props.account
);
When I try to use suppressAccount here:
this.logService.logSuppressStatus(
'Suppress account', this.props.account, suppressStatus
);
I get this error:
Argument of type 'Promise' is not assignable to parameter of type 'string'.ts(2345)
How do I resolve this?