clay-server 2.15.0-beta.1 → 2.15.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/public/modules/scheduler.js +35 -16
- package/lib/scheduler.js +5 -0
- package/package.json +1 -1
|
@@ -2725,22 +2725,41 @@ function submitCreateSchedule() {
|
|
|
2725
2725
|
if (maxIterations > 100) maxIterations = 100;
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2728
|
+
if (createEditingRecId) {
|
|
2729
|
+
send({
|
|
2730
|
+
type: "loop_registry_update",
|
|
2731
|
+
id: createEditingRecId,
|
|
2732
|
+
data: {
|
|
2733
|
+
name: name,
|
|
2734
|
+
description: description,
|
|
2735
|
+
date: dateVal,
|
|
2736
|
+
time: timeVal,
|
|
2737
|
+
allDay: false,
|
|
2738
|
+
cron: cron,
|
|
2739
|
+
enabled: cron ? true : false,
|
|
2740
|
+
color: createColor,
|
|
2741
|
+
recurrenceEnd: recurrenceEnd,
|
|
2742
|
+
maxIterations: maxIterations,
|
|
2743
|
+
},
|
|
2744
|
+
});
|
|
2745
|
+
} else {
|
|
2746
|
+
send({
|
|
2747
|
+
type: "schedule_create",
|
|
2748
|
+
data: {
|
|
2749
|
+
name: name,
|
|
2750
|
+
taskId: taskId,
|
|
2751
|
+
description: description,
|
|
2752
|
+
date: dateVal,
|
|
2753
|
+
time: timeVal,
|
|
2754
|
+
allDay: false,
|
|
2755
|
+
cron: cron,
|
|
2756
|
+
enabled: cron ? true : false,
|
|
2757
|
+
color: createColor,
|
|
2758
|
+
recurrenceEnd: recurrenceEnd,
|
|
2759
|
+
maxIterations: maxIterations,
|
|
2760
|
+
},
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2744
2763
|
|
|
2745
2764
|
closeCreateModal();
|
|
2746
2765
|
});
|
package/lib/scheduler.js
CHANGED
|
@@ -291,9 +291,14 @@ function createLoopRegistry(opts) {
|
|
|
291
291
|
if (data.enabled !== undefined) rec.enabled = data.enabled;
|
|
292
292
|
if (data.maxIterations !== undefined) rec.maxIterations = data.maxIterations;
|
|
293
293
|
if (data.date !== undefined) rec.date = data.date;
|
|
294
|
+
if (data.time !== undefined) rec.time = data.time;
|
|
294
295
|
if (data.recurrenceEnd !== undefined) rec.recurrenceEnd = data.recurrenceEnd;
|
|
295
296
|
if (data.mode !== undefined) rec.mode = data.mode;
|
|
296
297
|
if (data.prompt !== undefined) rec.prompt = data.prompt;
|
|
298
|
+
if (data.description !== undefined) rec.description = data.description;
|
|
299
|
+
if (data.color !== undefined) rec.color = data.color;
|
|
300
|
+
if (data.allDay !== undefined) rec.allDay = data.allDay;
|
|
301
|
+
if (data.linkedTaskId !== undefined) rec.linkedTaskId = data.linkedTaskId;
|
|
297
302
|
rec.updatedAt = Date.now();
|
|
298
303
|
if (rec.cron && rec.enabled) {
|
|
299
304
|
rec.nextRunAt = nextRunTime(rec.cron);
|