@kumori/aurora-backend-handler 1.1.88 → 1.1.89
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.
|
@@ -241,6 +241,8 @@ export const updateTenant = async (tenant: Tenant, security: string) => {
|
|
|
241
241
|
console.error("Error in tenant update WebSocket request:", err);
|
|
242
242
|
const { code: contentMessage, content: errorContent } =
|
|
243
243
|
extractWsErrorInfo(err);
|
|
244
|
+
const { plan, ...tenantWithoutPlan } = tenant;
|
|
245
|
+
eventHelper.tenant.publish.updateError(tenantWithoutPlan as Tenant);
|
|
244
246
|
const tenantUpdateErrorNotification: Notification = {
|
|
245
247
|
type: "error",
|
|
246
248
|
subtype: errors.tenant.updateError.subtype,
|
|
@@ -473,7 +475,9 @@ export const updateTenantHTTP = async (tenant: Tenant) => {
|
|
|
473
475
|
};
|
|
474
476
|
eventHelper.notification.publish.creation(tenantCreatedNotification);
|
|
475
477
|
} else {
|
|
476
|
-
|
|
478
|
+
// The request failed, so the plan change must not be reflected as applied.
|
|
479
|
+
const { plan, ...tenantWithoutPlan } = tenant;
|
|
480
|
+
eventHelper.tenant.publish.updateError(tenantWithoutPlan as Tenant);
|
|
477
481
|
|
|
478
482
|
let errorCode = "Unknown error";
|
|
479
483
|
let errorMessage = "Unknown error";
|