@kumori/aurora-backend-handler 1.1.26 → 1.1.27
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 +1 -1
- package/websocket-manager.ts +4 -2
package/package.json
CHANGED
package/websocket-manager.ts
CHANGED
|
@@ -2046,7 +2046,7 @@ export const fetchAndStoreMarketplaceSchema = async (
|
|
|
2046
2046
|
const tenantsWithItem: string[] = [];
|
|
2047
2047
|
tenantsMap.forEach((tenantEntry, tenantId) => {
|
|
2048
2048
|
const hasItem = (tenantEntry.marketplaceItems || []).some(
|
|
2049
|
-
(i) => i.name === item.name && i.domain === item.domain,
|
|
2049
|
+
(i) => i.name === item.name && i.domain === item.domain && i.artifact === item.artifact,
|
|
2050
2050
|
);
|
|
2051
2051
|
if (hasItem) tenantsWithItem.push(tenantId);
|
|
2052
2052
|
});
|
|
@@ -2079,7 +2079,9 @@ export const fetchAndStoreMarketplaceSchema = async (
|
|
|
2079
2079
|
const tenantEntry = tenantsMap.get(tenantId);
|
|
2080
2080
|
if (tenantEntry) {
|
|
2081
2081
|
tenantEntry.marketplaceItems = tenantEntry.marketplaceItems.map((i) =>
|
|
2082
|
-
i.name === item.name && i.domain === item.domain
|
|
2082
|
+
i.name === item.name && i.domain === item.domain && i.artifact === item.artifact
|
|
2083
|
+
? { ...i, schema }
|
|
2084
|
+
: i,
|
|
2083
2085
|
);
|
|
2084
2086
|
tenantsMap.set(tenantId, tenantEntry);
|
|
2085
2087
|
}
|