style: use void instead of .catch on fire-and-forget digest-queue call

This commit is contained in:
pyr0ball 2026-03-20 10:06:04 -07:00
parent 4246e71061
commit 154f691334
2 changed files with 4 additions and 4 deletions

View file

@ -92,11 +92,11 @@ async function reclassifySignal(sig: StageSignal, newLabel: StageSignal['stage_s
await useApiFetch(`/api/stage-signals/${sig.id}/dismiss`, { method: 'POST' }) await useApiFetch(`/api/stage-signals/${sig.id}/dismiss`, { method: 'POST' })
// Digest-only: add to browsable queue (fire-and-forget; sig.id === job_contacts.id) // Digest-only: add to browsable queue (fire-and-forget; sig.id === job_contacts.id)
if (newLabel === 'digest') { if (newLabel === 'digest') {
useApiFetch('/api/digest-queue', { void useApiFetch('/api/digest-queue', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ job_contact_id: sig.id }), body: JSON.stringify({ job_contact_id: sig.id }),
}).catch(() => {}) })
} }
} else { } else {
const prev = sig.stage_signal const prev = sig.stage_signal

View file

@ -110,11 +110,11 @@ async function reclassifyPreSignal(job: PipelineJob, sig: StageSignal, newLabel:
await useApiFetch(`/api/stage-signals/${sig.id}/dismiss`, { method: 'POST' }) await useApiFetch(`/api/stage-signals/${sig.id}/dismiss`, { method: 'POST' })
// Digest-only: add to browsable queue (fire-and-forget; sig.id === job_contacts.id) // Digest-only: add to browsable queue (fire-and-forget; sig.id === job_contacts.id)
if (newLabel === 'digest') { if (newLabel === 'digest') {
useApiFetch('/api/digest-queue', { void useApiFetch('/api/digest-queue', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ job_contact_id: sig.id }), body: JSON.stringify({ job_contact_id: sig.id }),
}).catch(() => {}) })
} }
} else { } else {
const prev = sig.stage_signal const prev = sig.stage_signal