Nick: fixed the other instances as well

This commit is contained in:
Nicolas 2024-07-12 15:39:10 -04:00
parent bd986a453c
commit 0ddaac6ae0
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ export async function runWebScraper({
const saveJob = async (job: Job, result: any) => {
try {
if (process.env.USE_DB_AUTHENTICATION) {
if (process.env.USE_DB_AUTHENTICATION === "true") {
const { data, error } = await supabase_service
.from("firecrawl_jobs")
.update({ docs: result })

View File

@ -6,7 +6,7 @@ import "dotenv/config";
export async function logJob(job: FirecrawlJob) {
try {
if (!process.env.USE_DB_AUTHENTICATION) {
if (process.env.USE_DB_AUTHENTICATION === "false") {
return;
}