Skip to content

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

refactor: remove redundant check in getDoneJobsOrderedUntil function for Redis job retrieval

Ademílson Tonatocc062e34ddef
diff --git a/apps/api/src/lib/crawl-redis.ts b/apps/api/src/lib/crawl-redis.ts
index aca73550e..a70b18ec9 100644
--- a/apps/api/src/lib/crawl-redis.ts
+++ b/apps/api/src/lib/crawl-redis.ts
@@ -217,13 +217,6 @@ export async function getDoneJobsOrderedUntil(
"crawl:" + id + ":jobs_donez_ordered",
24 * 60 * 60,
);
- if (count === -1) {
- return await redisEvictConnection.zrangebyscore(
- "crawl:" + id + ":jobs_donez_ordered",
- -Infinity,
- until,
- );
- }
return await redisEvictConnection.zrangebyscore(
"crawl:" + id + ":jobs_donez_ordered",
-Infinity,