cgnat: fix topsapp search
Signed-off-by: Rodrigo Martins <rodrigo@martinsevieira.adv.br>
This commit is contained in:
1 parent
6a5742ad7c
commit
501d0ca396
1 file changed
+6
-1
+6
-1
@@ -1010,7 +1010,12 @@ class TopSappAPI {
|
|||||||
* Obter histórico de acessos por estação/IP (ObterClientesServicosAcessos)
|
* Obter histórico de acessos por estação/IP (ObterClientesServicosAcessos)
|
||||||
*/
|
*/
|
||||||
async obterAcessos(params, instance, credentials) {
|
async obterAcessos(params, instance, credentials) {
|
||||||
return this.makeRequest('ObterClientesServicosAcessos', params, instance, credentials);
|
// idUsuario é obrigatório neste endpoint — extrair da sessão ativa
|
||||||
|
const session = await this.getValidSession(instance, credentials);
|
||||||
|
return this.makeRequest('ObterClientesServicosAcessos', {
|
||||||
|
idUsuario: session.idUsuario,
|
||||||
|
...params
|
||||||
|
}, instance, credentials);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user