From 13d28990d542c0bd7f342cbce8de9140afd7c543 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 24 Feb 2024 23:31:30 +0100 Subject: [PATCH] product id --- src/controllers/paymentController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/paymentController.ts b/src/controllers/paymentController.ts index 72db240..2b85f00 100644 --- a/src/controllers/paymentController.ts +++ b/src/controllers/paymentController.ts @@ -67,7 +67,7 @@ export async function GetPrices(req: Request, res: Response) { try { const { productId } = req.params; - if (productId === undefined || (productId !== "1" && productId !== "2")) { + if (productId === undefined || (productId !== "0" && productId !== "1")) { return res.status(400).send({ err: "invalid request" }); } @@ -75,9 +75,9 @@ export async function GetPrices(req: Request, res: Response) { let lookupKey: any[] = []; - if (productId === "1") { + if (productId === "0") { lookupKey = [ZeitAdlerBasicMonthly, ZeitAdlerBasicYearly]; - } else if (productId === "2") { + } else if (productId === "1") { lookupKey = [ZeitAdlerPremiumMonthly, ZeitAdlerPremiumYearly]; }