@budibase/server 2.6.18 → 2.6.19
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/builder/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
9
9
|
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
10
10
|
rel="stylesheet" />
|
|
11
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
11
|
+
<script type="module" crossorigin src="/builder/assets/index.b131b0de.js"></script>
|
|
12
12
|
<link rel="stylesheet" href="/builder/assets/index.86c992bf.css">
|
|
13
13
|
</head>
|
|
14
14
|
|
|
@@ -30,10 +30,16 @@ const WH_STEP_ID = triggerInfo_1.definitions.WEBHOOK.stepId;
|
|
|
30
30
|
const CRON_STEP_ID = triggerInfo_1.definitions.CRON.stepId;
|
|
31
31
|
const Runner = new threads_1.Thread(threads_1.ThreadType.AUTOMATION);
|
|
32
32
|
function loggingArgs(job) {
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
return [
|
|
34
|
+
{
|
|
35
|
+
_logKey: "automation",
|
|
36
|
+
trigger: job.data.automation.definition.trigger.event,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
_logKey: "bull",
|
|
40
|
+
jobId: job.id,
|
|
41
|
+
},
|
|
42
|
+
];
|
|
37
43
|
}
|
|
38
44
|
function processEvent(job) {
|
|
39
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -42,16 +48,16 @@ function processEvent(job) {
|
|
|
42
48
|
const task = () => __awaiter(this, void 0, void 0, function* () {
|
|
43
49
|
try {
|
|
44
50
|
// need to actually await these so that an error can be captured properly
|
|
45
|
-
console.log("automation running", loggingArgs(job));
|
|
51
|
+
console.log("automation running", ...loggingArgs(job));
|
|
46
52
|
const runFn = () => Runner.run(job);
|
|
47
53
|
const result = yield pro_1.quotas.addAutomation(runFn, {
|
|
48
54
|
automationId,
|
|
49
55
|
});
|
|
50
|
-
console.log("automation completed", loggingArgs(job));
|
|
56
|
+
console.log("automation completed", ...loggingArgs(job));
|
|
51
57
|
return result;
|
|
52
58
|
}
|
|
53
59
|
catch (err) {
|
|
54
|
-
console.error(`automation was unable to run`, err, loggingArgs(job));
|
|
60
|
+
console.error(`automation was unable to run`, err, ...loggingArgs(job));
|
|
55
61
|
return { err };
|
|
56
62
|
}
|
|
57
63
|
});
|