From 74740fadb386233ce9303684943e12053999fe49 Mon Sep 17 00:00:00 2001 From: Ivan Chub Date: Thu, 26 Sep 2024 20:34:02 -0700 Subject: [PATCH] thinking even more --- .../src/routing/routes/genericIssuanceRoutes.ts | 2 +- .../src/api/requestGenericIssuanceTicketPreviews.ts | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/passport-server/src/routing/routes/genericIssuanceRoutes.ts b/apps/passport-server/src/routing/routes/genericIssuanceRoutes.ts index 49849dcb29..a311886246 100644 --- a/apps/passport-server/src/routing/routes/genericIssuanceRoutes.ts +++ b/apps/passport-server/src/routing/routes/genericIssuanceRoutes.ts @@ -669,7 +669,7 @@ export function initGenericIssuanceRoutes( } ); - app.post( + app.get( "/generic-issuance/api/ticket-previews/:email/:orderCode", async (req, res) => { checkGenericIssuanceServiceStarted(genericIssuanceService); diff --git a/packages/lib/passport-interface/src/api/requestGenericIssuanceTicketPreviews.ts b/packages/lib/passport-interface/src/api/requestGenericIssuanceTicketPreviews.ts index 6003b6dca4..f5af75965f 100644 --- a/packages/lib/passport-interface/src/api/requestGenericIssuanceTicketPreviews.ts +++ b/packages/lib/passport-interface/src/api/requestGenericIssuanceTicketPreviews.ts @@ -1,7 +1,7 @@ import urlJoin from "url-join"; import { TicketPreviewResultValue } from "../RequestTypes"; import { APIResult } from "./apiResult"; -import { httpPostSimple } from "./makeRequest"; +import { httpGetSimple } from "./makeRequest"; /** * Asks the server to fetch the pipeline definition corresponding to the @@ -13,7 +13,7 @@ export async function requestGenericIssuanceTicketPreviews( email: string, orderCode: string ): Promise { - return httpPostSimple( + return httpGetSimple( urlJoin( zupassServerUrl, `/generic-issuance/api/ticket-previews`, @@ -24,8 +24,7 @@ export async function requestGenericIssuanceTicketPreviews( value: JSON.parse(resText) as TicketPreviewResultValue, success: true }), - {}, - true + {} ); }