Tengo este servicio:
async suppressAccount(account: string): Promise<string> { return await Api.getData( this.accountApiUrl + account, {timeout: 60000}).then( (response) => response.data.suppressStatus ); }Se llama con:
const suppressAccount = this.reissueCertService.suppressAccount( this.props.account ); Cuando trato de usar suppressAccount aquí:
this.logService.logSuppressStatus( 'Suppress account', this.props.account, suppressStatus );me sale este error:
El argumento de tipo 'Promesa' no se puede asignar al parámetro de tipo 'cadena'.ts(2345)
¿Cómo resuelvo esto?