@axiom-lattice/pg-stores 4.1.1 → 5.0.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/dist/index.mjs CHANGED
@@ -14722,9 +14722,11 @@ async function createPgStoreConfig(connectionString) {
14722
14722
  mm.register(addShareKind);
14723
14723
  await mm.migrate();
14724
14724
  const checkpoint = PostgresSaver.fromConnString(connectionString);
14725
- checkpoint.setup().catch((err) => {
14725
+ try {
14726
+ await checkpoint.setup();
14727
+ } catch (err) {
14726
14728
  console.error("[pg-stores] Failed to setup checkpoint table:", err.message || err);
14727
- });
14729
+ }
14728
14730
  const opts = { pool };
14729
14731
  const taskWorkItemStore = new PostgreSQLTaskWorkItemStore(pool);
14730
14732
  return {