style: use void instead of .catch on fire-and-forget digest-queue call
This commit is contained in:
parent
4246e71061
commit
154f691334
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' })
|
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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue