commit 6af708aa26396667078a8da3d3fca4e894998b5d
parent d042ff493360414af9fac896494a59e6bcfe04d7
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 12 Mar 2024 11:55:49 -0300
fix #8490 also check 2a4dbc67e8d1e6a256
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/packages/taler-util/src/operation.ts b/packages/taler-util/src/operation.ts
@@ -90,8 +90,6 @@ export interface OperationAlternative<T, B> {
export interface OperationFailWithBody<B> {
type: "fail";
- httpResp: HttpResponse;
-
case: keyof B;
body: B[OperationFailWithBody<B>["case"]];
}
@@ -120,7 +118,7 @@ export async function opKnownFailureWithBody<B>(
case_: keyof B,
body: B[typeof case_],
): Promise<OperationFailWithBody<B>> {
- return { type: "fail", case: case_, body, httpResp: {} as any };
+ return { type: "fail", case: case_, body };
}
export async function opKnownAlternativeFailure<T extends HttpStatusCode, B>(