fix/check-for-auth-on-scrape-log

This commit is contained in:
rafaelsideguide 2024-07-24 12:54:14 -03:00
parent 4ead89f983
commit 4eca6bd301
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ export async function logScrape(
scrapeLog: ScrapeLog,
pageOptions?: PageOptions
) {
if (process.env.USE_DB_AUTHENTICATION === "false") {
return;
}
try {
// Only log jobs in production
// if (process.env.ENV !== "production") {