From 6fb76da6cf672a53b9a0fcaa62b43a9e88c5a9b7 Mon Sep 17 00:00:00 2001 From: Paul Volavsek Date: Thu, 19 Sep 2024 15:46:48 +0200 Subject: [PATCH] fix build --- src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs b/src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs index 37f4ab4b..03c267c3 100644 --- a/src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs +++ b/src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs @@ -25,7 +25,7 @@ public static WebApplication AddQueueEndpoints(this WebApplication app, IPOS pos app.MapMultiplePrefixed(_prefixesV1, "Echo", EndpointRouteBuilderExtensions.MapPost, async (ifPOS.v1.EchoRequest req) => await pos.EchoAsync(req)); app.MapMultiplePrefixed(_prefixesV0, "Echo", EndpointRouteBuilderExtensions.MapPost, async ([FromBody] string message) => (await pos.EchoAsync(new ifPOS.v1.EchoRequest { Message = message })).Message); app.MapMultiplePrefixed(_prefixes, "Sign", EndpointRouteBuilderExtensions.MapPost, async (ReceiptRequest req) => await pos.SignAsync(req)); - app.MapMultiplePrefixed(_prefixes, "Journal", EndpointRouteBuilderExtensions.MapPost, ([FromQuery] long type, [FromQuery] long? from, [FromQuery] long? to) => + app.MapMultiplePrefixed(_prefixes, "Journal", EndpointRouteBuilderExtensions.MapPost, async ([FromQuery] long type, [FromQuery] long? from, [FromQuery] long? to) => { var pipe = new Pipe(); var journal = pos.JournalAsync(new JournalRequest { ftJournalType = type, From = from ?? 0, To = to ?? 0 });