Skip to content

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

feat: stable sort

tomsideguide5a45bdbf8a35
diff --git a/apps/api/src/services/monitoring/store.ts b/apps/api/src/services/monitoring/store.ts
index 47b356e85..47b3b1e21 100644
--- a/apps/api/src/services/monitoring/store.ts
+++ b/apps/api/src/services/monitoring/store.ts
@@ -794,6 +794,7 @@ export async function calculateMonitorCheckActualCredits(params: {
.from("monitor_check_pages")
.select("target_id, metadata, judgment, status")
.eq("check_id", params.checkId)
+ .order("id", { ascending: true })
.range(offset, offset + MONITOR_CHECK_PAGE_BATCH_SIZE - 1);
throwIfError(error, "Failed to calculate monitor check credits");