@kumori/aurora-backend-handler 1.0.86 → 1.0.88
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/api/account-api-service.ts +17 -17
- package/package.json +1 -1
- package/websocket-manager.ts +4 -0
|
@@ -1419,24 +1419,24 @@ export const updateAccount = async (account: Account, security: Security) => {
|
|
|
1419
1419
|
provider: account.cloudProvider?.name,
|
|
1420
1420
|
});
|
|
1421
1421
|
eventHelper.account.publish.updateError(account);
|
|
1422
|
-
const { code, message } = extractErrorInfo(error);
|
|
1422
|
+
// const { code, message } = extractErrorInfo(error);
|
|
1423
1423
|
|
|
1424
|
-
const accountErrorNotification: Notification = {
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
};
|
|
1439
|
-
eventHelper.notification.publish.creation(accountErrorNotification);
|
|
1424
|
+
// const accountErrorNotification: Notification = {
|
|
1425
|
+
// type: "error",
|
|
1426
|
+
// subtype: "account-update-error",
|
|
1427
|
+
// date: Date.now().toString(),
|
|
1428
|
+
// info_content: {
|
|
1429
|
+
// code,
|
|
1430
|
+
// message,
|
|
1431
|
+
// },
|
|
1432
|
+
// status: "unread",
|
|
1433
|
+
// callToAction: false,
|
|
1434
|
+
// data: {
|
|
1435
|
+
// account: account.name,
|
|
1436
|
+
// tenant: account.tenant,
|
|
1437
|
+
// },
|
|
1438
|
+
// };
|
|
1439
|
+
// eventHelper.notification.publish.creation(accountErrorNotification);
|
|
1440
1440
|
throw error;
|
|
1441
1441
|
}
|
|
1442
1442
|
};
|
package/package.json
CHANGED
package/websocket-manager.ts
CHANGED
|
@@ -1480,6 +1480,10 @@ const handleOperationError = (operation: PendingOperation, error: any) => {
|
|
|
1480
1480
|
environmentsMap.set(entityName, envErrorResult.updatedEnvironment);
|
|
1481
1481
|
break;
|
|
1482
1482
|
}
|
|
1483
|
+
setTimeout(async () => {
|
|
1484
|
+
rebuildHierarchy();
|
|
1485
|
+
await updateUserWithPlatformInfo();
|
|
1486
|
+
}, 100);
|
|
1483
1487
|
};
|
|
1484
1488
|
const handleDeleteEvent = async (message: WSMessage) => {
|
|
1485
1489
|
const keyParts = parseKeyPath(message.payload.key);
|