Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(api): drop the stored version from parsed feedback job rows (#4686)

Gergő Móricz7c8ad8be4a1b
diff --git a/apps/api/src/lib/feedback-job-store.ts b/apps/api/src/lib/feedback-job-store.ts
index 1dc1e6714..768bec2db 100644
--- a/apps/api/src/lib/feedback-job-store.ts
+++ b/apps/api/src/lib/feedback-job-store.ts
@@ -58,7 +58,10 @@ function parseFeedbackJob(value: Buffer | string): FeedbackJob {
) {
throw new Error("Invalid Bigtable feedback job row");
}
- return parsed as FeedbackJob;
+ // The stored shape carries a `version` for forward compatibility; the
+ // in-memory job does not, matching the scrape and extract state readers.
+ const { version: _, ...job } = row;
+ return job as FeedbackJob;
}
export async function readFeedbackJob(