@backstage/plugin-catalog-backend 0.0.0-nightly-20220421024404 → 0.0.0-nightly-20220422024928

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,12 +1,14 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
- ## 0.0.0-nightly-20220421024404
3
+ ## 0.0.0-nightly-20220422024928
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 55e09b29dd: Fixing broken types for `knex` when checking returned rows
7
8
  - 8cc75993a6: Fixed issue in `PermissionEvaluator` instance check that would cause unexpected "invalid union" errors.
8
9
  - Updated dependencies
9
- - @backstage/backend-common@0.0.0-nightly-20220421024404
10
+ - @backstage/backend-common@0.0.0-nightly-20220422024928
11
+ - @backstage/integration@0.0.0-nightly-20220422024928
10
12
 
11
13
  ## 1.1.0
12
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "0.0.0-nightly-20220421024404",
3
+ "version": "0.0.0-nightly-20220422024928",
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
  }