@cadenza.io/service 1.20.1 → 1.20.2

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/dist/index.js CHANGED
@@ -2879,12 +2879,13 @@ var DatabaseController = class _DatabaseController {
2879
2879
  const { table, column } = awaitExists[fk];
2880
2880
  let exists = false;
2881
2881
  let retries = 0;
2882
- const maxRetries = 100;
2882
+ const maxRetries = 20;
2883
2883
  while (!exists && retries < maxRetries) {
2884
+ console.log("Exists check", fk, awaitExists);
2884
2885
  const result2 = await client.query(
2885
2886
  `SELECT EXISTS(SELECT 1 from ${table} where ${column}=${typeof value === "string" ? `"${value}"` : value}) AS "exists"`
2886
2887
  );
2887
- console.log("Exists check", fk, result2);
2888
+ console.log("Exists check result", result2);
2888
2889
  exists = result2.rows[0].exists;
2889
2890
  if (exists) break;
2890
2891
  retries++;