Skip to content

Commit

Permalink
fix: reorg bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Nov 16, 2024
1 parent 7cf1f89 commit 3aba13a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/bin/utils/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export async function run({
break;
}
case "reorg":
await database.removeTriggers();
await database.revert({ checkpoint: event.checkpoint });
await database.createTriggers();

break;

Expand Down

0 comments on commit 3aba13a

Please sign in to comment.