Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: parse min timestamp for blob storage export as number (#10530)

Steffen Schmitz03edd7d90191
diff --git a/worker/src/features/blobstorage/handleBlobStorageIntegrationProjectJob.ts b/worker/src/features/blobstorage/handleBlobStorageIntegrationProjectJob.ts
index 6385388bfe..7cac6256fb 100644
--- a/worker/src/features/blobstorage/handleBlobStorageIntegrationProjectJob.ts
+++ b/worker/src/features/blobstorage/handleBlobStorageIntegrationProjectJob.ts
@@ -65,10 +65,10 @@ const getMinTimestampForExport = async (
});
// Extract the minimum timestamp
- const minTimestampValue = result[0]?.min_timestamp;
logger.info(
- `[BLOB INTEGRATION] ClickHouse min_timestamp for project ${projectId}: ${minTimestampValue}`,
+ `[BLOB INTEGRATION] ClickHouse min_timestamp for project ${projectId}: ${result[0]?.min_timestamp}, type: ${typeof result[0]?.min_timestamp}`,
);
+ const minTimestampValue = Number(result[0]?.min_timestamp);
if (minTimestampValue && minTimestampValue > 0) {
const date = new Date(minTimestampValue);