product id

main
alex 2024-02-24 23:31:30 +01:00
parent fde4f5ceea
commit 13d28990d5
1 changed files with 3 additions and 3 deletions

View File

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