Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowbhz committed Sep 23, 2023
1 parent 2b2f345 commit 5d63802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/controllers/SCController.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class SCController {
const textoNotFound = "Nenhuma multa em aberto cadastrada para este veículo até o momento.";
await pageReload.waitForNavigation({ waitUntil: 'networkidle2', timeout: 10000 });
const html = await pageReload.content();
console.log('html', html);
if (html.includes(textoNotFound)) {
console.log('Nenhuma multa em aberto cadastrada para este veículo até o momento.');
await pageReload.close();
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/SCController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ class SCController {

const html = await pageReload.content();

if (html.includes(textoNotFound)) {
console.log('html', html);

if (html.includes(textoNotFound)) {
console.log('Nenhuma multa em aberto cadastrada para este veículo até o momento.');

await pageReload.close();
return { placa, renavam, multas: [], message: 'Nenhuma multa em aberto cadastrada para este veículo até o momento.' };
}
Expand Down

0 comments on commit 5d63802

Please sign in to comment.