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
co-authored by Copilot
parent a14814291e
commit 544a5ca86f
+3 -1
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) {