Fix arrow function syntax in catch handler

This commit is contained in:
nmemmert committed 2025-11-07 10:34:30 -05:00
1 parent 54ed7aaffd
commit 91fb9493cc
1 file changed
+3 -1
+3 -1
View File
@@ -1394,9 +1394,11 @@ def jobs():
} }
console.log('[updateJobs] Update complete!'); console.log('[updateJobs] Update complete!');
}) })
.catch(error => { .catch(function(error) {
console.error('[updateJobs] Error updating jobs:', error); console.error('[updateJobs] Error updating jobs:', error);
if (error.stack) {
console.error('[updateJobs] Error stack:', error.stack); console.error('[updateJobs] Error stack:', error.stack);
}
}); });
} }