bugfix docker self hosting

This commit is contained in:
rafaelsideguide 2024-07-12 16:51:20 -03:00
parent f2a08e0ab8
commit f453bcf17c
2 changed files with 7 additions and 4 deletions

View File

@ -2,8 +2,9 @@ import { supabase_service } from "../supabase";
import "dotenv/config"; import "dotenv/config";
export async function logCrawl(job_id: string, team_id: string) { export async function logCrawl(job_id: string, team_id: string) {
try { if (process.env.USE_DB_AUTHENTICATION === 'true') {
const { data, error } = await supabase_service try {
const { data, error } = await supabase_service
.from("bulljobs_teams") .from("bulljobs_teams")
.insert([ .insert([
{ {
@ -11,7 +12,8 @@ export async function logCrawl(job_id: string, team_id: string) {
team_id: team_id, team_id: team_id,
}, },
]); ]);
} catch (error) { } catch (error) {
console.error("Error logging crawl job:\n", error); console.error("Error logging crawl job:\n", error);
}
} }
} }

View File

@ -56,6 +56,7 @@ services:
- redis - redis
- playwright-service - playwright-service
- api - api
command: [ "pnpm", "run", "workers" ]
redis: redis:
image: redis:alpine image: redis:alpine