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]; }