product id
parent
fde4f5ceea
commit
13d28990d5
|
@ -67,7 +67,7 @@ export async function GetPrices(req: Request, res: Response) {
|
||||||
try {
|
try {
|
||||||
const { productId } = req.params;
|
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" });
|
return res.status(400).send({ err: "invalid request" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,9 +75,9 @@ export async function GetPrices(req: Request, res: Response) {
|
||||||
|
|
||||||
let lookupKey: any[] = [];
|
let lookupKey: any[] = [];
|
||||||
|
|
||||||
if (productId === "1") {
|
if (productId === "0") {
|
||||||
lookupKey = [ZeitAdlerBasicMonthly, ZeitAdlerBasicYearly];
|
lookupKey = [ZeitAdlerBasicMonthly, ZeitAdlerBasicYearly];
|
||||||
} else if (productId === "2") {
|
} else if (productId === "1") {
|
||||||
lookupKey = [ZeitAdlerPremiumMonthly, ZeitAdlerPremiumYearly];
|
lookupKey = [ZeitAdlerPremiumMonthly, ZeitAdlerPremiumYearly];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue