Skip to content

Commit 3ba94ba

Browse files
fix: return only 100 jobs instead of all (for mystique) (#1399)
1 parent 27be109 commit 3ba94ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controllers/scrapeJob.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ function ScrapeJobController(context) {
180180
if (!jobs || jobs.length === 0) {
181181
return ok([]);
182182
}
183-
return ok(jobs);
183+
184+
// return the first max 100 jobs
185+
return ok(jobs.slice(0, 100));
184186
} catch (error) {
185187
log.error(`Failed to fetch scrape jobs by baseURL: ${decodedBaseURL}, ${error.message}`);
186188
return createErrorResponse(error);

0 commit comments

Comments
 (0)