@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-backend-handler",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {
@@ -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 ? { ...i, schema } : i,
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
  }