Nick: fixed the other instances as well
This commit is contained in:
parent
bd986a453c
commit
0ddaac6ae0
|
@ -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 })
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue