Skip to content

Commit

Permalink
fixed minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
digas99 committed Jan 14, 2023
1 parent 4754568 commit c64fbb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function login(req, res, next) {
const [email, password] = decoded.split(":");
if (email && password) {
try {
await paco.secretariaVirtual(email, password, false)
await paco.secretariaVirtual(email, password)
.then(async page => {
if (page) {
req.page = page;
Expand Down
4 changes: 2 additions & 2 deletions scrapers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ module.exports = {
delete result["size"];
response.status(200).json(success(result));
})
.catch(err => response.status(500).json(error(err)));
//.finally(() => secretariaVirtual.browser().close()); // close browser when everything is done
.catch(err => response.status(500).json(error(err)))
.finally(() => secretariaVirtual.browser().close()); // close browser when everything is done

},
// Secretaria Virtual (login)
Expand Down

0 comments on commit c64fbb6

Please sign in to comment.