parse form for submission

This commit is contained in:
Alex Holliday committed 2024-10-04 12:09:08 +08:00
1 parent 5f96b17595
commit c8418705b1
3 files changed
+43 -15

No files matched your search

+10 -4
View File
@@ -84,7 +84,15 @@ class JobQueue {
if (window.active) {
const start = new Date(window.start);
const end = new Date(window.end);
if (start < new Date() && end > new Date()) {
const now = new Date();
const repeatInterval = window.repeat || 0;
while (start < now) {
start.setDate(start.getTime() + repeatInterval);
end.setDate(end.getTime() + repeatInterval);
}
if (start < now && end > now) {
return true;
}
}
@@ -139,9 +147,7 @@ class JobQueue {
return { jobs, load };
} catch (error) {
error.service === undefined ? (error.service = SERVICE_NAME) : null;
error.method === undefined
? (error.method = "getWorkerStats")
: null;
error.method === undefined ? (error.method = "getWorkerStats") : null;
throw error;
}
}