Skip to content

Commit

Permalink
fix: do not resume if completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jul 15, 2024
1 parent fcba6ab commit 95044ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MigrationsProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ export function Provider ({ children }: ProviderProps): ReactNode {
useEffect(() => {
if (!client) return
for (const migration of migrations) {
if (migration.progress && migration.progress.pending <= 0) {
continue // do not resume if completed :)
}
startMigration(migration.id)
}
}, [client])
Expand Down

0 comments on commit 95044ad

Please sign in to comment.