node: fix readiness waiting for next result instead of using latest

This commit is contained in:
Elijah Duffy
2025-12-24 22:07:17 -08:00
parent 0956271e29
commit c6ff80655b

View File

@@ -196,7 +196,7 @@ export class ScheduledReadiness {
*/
createHandler(): () => Promise<Response> {
return async () => {
const result = await this.getNextResult();
const result = this.getResult();
if (!result) {
return new Response(
JSON.stringify({