@backstage/plugin-catalog-backend 1.1.1 → 1.1.2-next.0

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/CHANGELOG.md CHANGED
@@ -1,10 +1,16 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
- ## 1.1.1
3
+ ## 1.1.2-next.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 777f2125ac: Fixed issue in `PermissionEvaluator` instance check that would cause unexpected "invalid union" errors.
7
+ - 55e09b29dd: Fixing broken types for `knex` when checking returned rows
8
+ - cfc0f19699: Updated dependency `fs-extra` to `10.1.0`.
9
+ - 8cc75993a6: Fixed issue in `PermissionEvaluator` instance check that would cause unexpected "invalid union" errors.
10
+ - Updated dependencies
11
+ - @backstage/backend-common@0.13.3-next.0
12
+ - @backstage/integration@1.2.0-next.0
13
+ - @backstage/plugin-permission-node@0.6.1-next.0
8
14
 
9
15
  ## 1.1.0
10
16
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.1.1",
3
+ "version": "1.1.2-next.0",
4
4
  "main": "../dist/index.cjs.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.cjs.js CHANGED
@@ -2703,11 +2703,11 @@ class Stitcher {
2703
2703
  entity.metadata.etag = hash;
2704
2704
  }
2705
2705
  const searchEntries = buildEntitySearch(entityId, entity);
2706
- const rowsChanged = await this.database("final_entities").update({
2706
+ const amountOfRowsChanged = await this.database("final_entities").update({
2707
2707
  final_entity: JSON.stringify(entity),
2708
2708
  hash
2709
2709
  }).where("entity_id", entityId).where("stitch_ticket", ticket).onConflict("entity_id").merge(["final_entity", "hash"]);
2710
- if (rowsChanged.length === 0) {
2710
+ if (amountOfRowsChanged === 0) {
2711
2711
  this.logger.debug(`Entity ${entityRef} is already processed, skipping write.`);
2712
2712
  return;
2713
2713
  }