Skip to main content

Function: findRecentSiblingSignal()

findRecentSiblingSignal(svc, companyId, facilityId, roleFamily, sinceIso): Promise<{ } | null>

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

Semantic-dedup lookup: an active signal for the same facility + role family last seen on/after sinceIso (the service passes now-7d). A weekly re-post of one open role should refresh this rather than spawn a new row. Self-exclusion isn't needed here — the caller only reaches this after the exact source+external_id branch returns no row, so a re-fetch of the same posting can't match itself.

Parameters​

svc​

SupabaseClient

companyId​

string

facilityId​

string

roleFamily​

string

sinceIso​

string

Returns​

Promise<{ } | null>