Catch possible errors in scoring

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Shaheer Sarfaraz 2026-01-19 19:31:36 +00:00 committed by GitHub
parent a14814291e
commit 544a5ca86f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -851,7 +851,9 @@ apiRouter.post('/manual-jobs/import', async (req: Request, res: Response) => {
} catch (error) {
console.warn('Manual job scoring failed:', error);
}
})();
})().catch((error) => {
console.warn('Manual job scoring task failed to start:', error);
});
res.json({ success: true, data: createdJob });
} catch (error) {