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 4cf1e53901
commit d76e74c200
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' })
// Digest-only: add to browsable queue (fire-and-forget; sig.id === job_contacts.id)
if (newLabel === 'digest') {
useApiFetch('/api/digest-queue', {
void useApiFetch('/api/digest-queue', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ job_contact_id: sig.id }),
}).catch(() => {})
})
}
} else {
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' })
// Digest-only: add to browsable queue (fire-and-forget; sig.id === job_contacts.id)
if (newLabel === 'digest') {
useApiFetch('/api/digest-queue', {
void useApiFetch('/api/digest-queue', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ job_contact_id: sig.id }),
}).catch(() => {})
})
}
} else {
const prev = sig.stage_signal