@plusscommunities/pluss-maintenance-aws 2.1.37 → 2.1.38
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.
|
@@ -294,9 +294,21 @@ class ArchibusStrategy extends IntegrationStrategy {
|
|
|
294
294
|
"id",
|
|
295
295
|
requestId,
|
|
296
296
|
);
|
|
297
|
-
// check how the new status map to what is saved in Pluss
|
|
298
297
|
|
|
299
|
-
if (
|
|
298
|
+
if (!plussRequest) {
|
|
299
|
+
log(
|
|
300
|
+
"Archibus:RefreshFromSource",
|
|
301
|
+
"RequestDeletedLocally",
|
|
302
|
+
requestId,
|
|
303
|
+
logId,
|
|
304
|
+
);
|
|
305
|
+
const entityRowId = `${this.getEntityType()}_${externalId}`;
|
|
306
|
+
const entity = await getRef("externalentities", "RowId", entityRowId);
|
|
307
|
+
if (entity?.ActiveEntityType) {
|
|
308
|
+
delete entity.ActiveEntityType;
|
|
309
|
+
await updateRef("externalentities", entity);
|
|
310
|
+
}
|
|
311
|
+
} else if (statusToUse.Status !== plussRequest?.status) {
|
|
300
312
|
// save updated status
|
|
301
313
|
|
|
302
314
|
plussRequest = await editRef(
|
package/package-lock.json
CHANGED
package/package.json
CHANGED