fix: only crawl onlinfix when credentials exists

This commit is contained in:
João Martins 2024-04-12 01:16:20 -03:00
parent cd2a83e667
commit 47a2d82a90
No known key found for this signature in database
GPG key ID: 4F4EF2B738A71395

View file

@ -23,7 +23,7 @@ export const getNewRepacksFromOnlineFix = async (
): Promise<void> => {
const hasCredentials =
process.env.ONLINEFIX_USERNAME && process.env.ONLINEFIX_PASSWORD;
if (hasCredentials) return;
if (!hasCredentials) return;
const http = gotScraping.extend({
headerGeneratorOptions: {