Issue with Effect.repeat Returning Number of Repetitions Instead of JSON Body
I have added an Effect.repeat to my HttpClient request but it turns the resulting value into the number of repetitions instead of the JSON body...
const resp = yield* httpClientWithoutBase.execute(req).pipe(
Effect.flatMap(HttpClientResponse.schemaBodyJson(AnalyzeOperation)),
Effect.repeat({
schedule: Schedule.spaced(interval),
until: (response) =>
response.status !== "notStarted" && response.status !== "running",
}),
);