style: use void instead of .catch on fire-and-forget digest-queue call
This commit is contained in:
parent
4cf1e53901
commit
d76e74c200
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue