fixing some bugs the wife found ;)

This commit is contained in:
orangecoding
2026-01-28 21:25:48 +01:00
parent 797421f0d5
commit bc355fb5fe
5 changed files with 22 additions and 14 deletions

View File

@@ -173,7 +173,7 @@ jobRouter.post('/', async (req, res) => {
return;
}
if (settings.demoMode && jobFromDb.name === DEMO_JOB_NAME) {
if (settings.demoMode && jobFromDb && jobFromDb.name === DEMO_JOB_NAME) {
res.send(new Error('Sorry, but you cannot change the Status of our Demo Job ;)'));
return;
}