@kumori/aurora-backend-handler 1.1.10 → 1.1.11
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/package.json +2 -2
- package/websocket-manager.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumori/aurora-backend-handler",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "backend handler",
|
|
5
5
|
"main": "backend-handler.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"glob": "^11.0.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@kumori/aurora-interfaces": "^1.0.
|
|
14
|
+
"@kumori/aurora-interfaces": "^1.0.13",
|
|
15
15
|
"@kumori/kumori-dsl-generator": "^1.0.4",
|
|
16
16
|
"@kumori/kumori-module-generator": "^1.1.6",
|
|
17
17
|
"ts-node": "^10.9.2",
|
package/websocket-manager.ts
CHANGED
|
@@ -563,7 +563,6 @@ const rebuildHierarchy = () => {
|
|
|
563
563
|
const preservedUserData = { ...userData };
|
|
564
564
|
|
|
565
565
|
tenantsMap.forEach((tenant) => {
|
|
566
|
-
console.log("[DEBUG] rebuild - tenant.users before:", JSON.stringify(tenant.users));
|
|
567
566
|
tenant.accounts = Array.from(accountsMap.values()).filter((account) => {
|
|
568
567
|
account.environments = Array.from(environmentsMap.values())
|
|
569
568
|
.filter((env) => env.account === account.id)
|
|
@@ -591,7 +590,6 @@ const rebuildHierarchy = () => {
|
|
|
591
590
|
pendingProjects.splice(i, 1);
|
|
592
591
|
}
|
|
593
592
|
}
|
|
594
|
-
console.log("[DEBUG] rebuild tenant.users before:", JSON.stringify(tenant.users));
|
|
595
593
|
});
|
|
596
594
|
userData = {
|
|
597
595
|
id: preservedUserData.id,
|
|
@@ -814,7 +812,6 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
814
812
|
eventData,
|
|
815
813
|
userData,
|
|
816
814
|
);
|
|
817
|
-
console.log("[DEBUG] newTenant.users:", JSON.stringify(newTenant.users))
|
|
818
815
|
if (
|
|
819
816
|
existingTenant &&
|
|
820
817
|
existingTenant.role &&
|
|
@@ -860,7 +857,6 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
860
857
|
}
|
|
861
858
|
|
|
862
859
|
tenantsMap.set(entityId, newTenant);
|
|
863
|
-
console.log("[DEBUG] tenantsMap after set:", JSON.stringify(tenantsMap.get(entityId)?.users));
|
|
864
860
|
if (pendingTenantStatus.has(entityId)) {
|
|
865
861
|
const pendingStatus = pendingTenantStatus.get(entityId)!;
|
|
866
862
|
tenantsMap.set(entityId, { ...newTenant, status: pendingStatus });
|