node: fix readiness waiting for next result instead of using latest
This commit is contained in:
@@ -196,7 +196,7 @@ export class ScheduledReadiness {
|
|||||||
*/
|
*/
|
||||||
createHandler(): () => Promise<Response> {
|
createHandler(): () => Promise<Response> {
|
||||||
return async () => {
|
return async () => {
|
||||||
const result = await this.getNextResult();
|
const result = this.getResult();
|
||||||
if (!result) {
|
if (!result) {
|
||||||
return new Response(
|
return new Response(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user