Skip to main content

Function: findSignalByJobUrl()

findSignalByJobUrl(svc, companyId, jobUrl): Promise<{ } | null>

Defined in: src/db/queries/pipeline.ts:126

Existing signal sharing this job_url (a same posting syndicated under a new source/external_id). The DB has a partial unique index on (company_id, job_url); the ingest checks this BEFORE inserting so a same-URL re-post refreshes the row instead of hitting the constraint and being dropped.

Parameters

svc

SupabaseClient

companyId

string

jobUrl

string

Returns

Promise<{ } | null>