Skip to content

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

fix: correct property name from 'success' to 'is_successful' (#2550)

tomd56da91f803b
diff --git a/apps/api/src/controllers/v2/extract-status.ts b/apps/api/src/controllers/v2/extract-status.ts
index 378554c0a..b7c061f8f 100644
--- a/apps/api/src/controllers/v2/extract-status.ts
+++ b/apps/api/src/controllers/v2/extract-status.ts
@@ -10,7 +10,7 @@ import { logger as _logger } from "../../lib/logger";
type DBExtract = {
id: string;
- success: boolean;
+ is_successful: boolean;
options: any;
created_at: any;
error: string | null;
@@ -48,7 +48,7 @@ async function getExtractJob(
id,
getState: bullJob
? bullJob.getState.bind(bullJob)
- : () => (dbExtract!.success ? "completed" : "failed"),
+ : () => (dbExtract!.is_successful ? "completed" : "failed"),
returnvalue: data,
data: {
scrapeOptions: bullJob ? bullJob.data.scrapeOptions : dbExtract!.options,