@plusscommunities/pluss-maintenance-aws-forms 2.1.20 → 2.1.21
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.
|
@@ -131,7 +131,11 @@ class ArchibusStrategy extends IntegrationStrategy {
|
|
|
131
131
|
});
|
|
132
132
|
|
|
133
133
|
// Save the Archibus ID as the job number and add history entry
|
|
134
|
-
const updatedJob = await getRef(
|
|
134
|
+
const updatedJob = await getRef(
|
|
135
|
+
values.tableNameMaintenance,
|
|
136
|
+
"id",
|
|
137
|
+
request.id
|
|
138
|
+
);
|
|
135
139
|
if (!updatedJob.history) updatedJob.history = [];
|
|
136
140
|
updatedJob.history.push({
|
|
137
141
|
timestamp: moment.utc().valueOf(),
|
|
@@ -164,12 +168,15 @@ class ArchibusStrategy extends IntegrationStrategy {
|
|
|
164
168
|
|
|
165
169
|
// Add history entry for failed integration
|
|
166
170
|
try {
|
|
167
|
-
const failedJob = await getRef(
|
|
171
|
+
const failedJob = await getRef(
|
|
172
|
+
values.tableNameMaintenance,
|
|
173
|
+
"id",
|
|
174
|
+
request.id
|
|
175
|
+
);
|
|
168
176
|
if (!failedJob.history) failedJob.history = [];
|
|
169
177
|
failedJob.history.push({
|
|
170
178
|
timestamp: moment.utc().valueOf(),
|
|
171
179
|
action: "ExternalIDSetFailed",
|
|
172
|
-
error: e.message || e.toString(),
|
|
173
180
|
user: {
|
|
174
181
|
displayName: "Archibus Integration",
|
|
175
182
|
id: "system",
|
package/package-lock.json
CHANGED
package/package.json
CHANGED