From 3f15c6ace7903616d866a2202d39a2f806678980 Mon Sep 17 00:00:00 2001 From: DEls Date: Wed, 19 Aug 2026 19:24:57 +0200 Subject: [PATCH] refactor(batch): import BatchStatus from pb-types Co-Authored-By: Claude --- src/lib/batch-state.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib/batch-state.ts b/src/lib/batch-state.ts index 79c3633..fd460bc 100644 --- a/src/lib/batch-state.ts +++ b/src/lib/batch-state.ts @@ -10,14 +10,9 @@ * These helpers are pure so they can be unit-tested without PocketBase. */ -export const MAX_ATTEMPTS = 3; +import type { BatchStatus } from "./pb-types"; -export type BatchStatus = - | "pending" - | "processing" - | "processed" - | "failed" - | "dead"; +export const MAX_ATTEMPTS = 3; export type NextStateInput = { status: BatchStatus;