fixed server build

This commit is contained in:
John Yeo
2025-01-22 18:07:35 +00:00
parent 8d49a8e521
commit 410105786c
3 changed files with 6 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ cusRouter.post("", async (req: any, res: any) => {
product: defaultProduct,
prices: defaultProduct.prices,
entitlements: defaultProduct.entitlements,
pricesInput: [],
optionsList: [],
});
}
} catch (error) {

View File

@@ -301,7 +301,7 @@ attachRouter.post("", async (req: any, res) => {
env,
prices,
entitlements,
pricesInput,
optionsList,
});
return;
}

View File

@@ -3,6 +3,7 @@ import {
Entitlement,
EntitlementWithFeature,
Feature,
FeatureOptions,
FullProduct,
Organization,
Price,
@@ -21,7 +22,7 @@ export const handleAddFreeProduct = async ({
env,
prices,
entitlements,
pricesInput,
optionsList,
}: {
req: any;
res: any;
@@ -31,7 +32,7 @@ export const handleAddFreeProduct = async ({
env: AppEnv;
prices: Price[];
entitlements: EntitlementWithFeature[];
pricesInput: PricesInput;
optionsList: FeatureOptions[];
}) => {
console.log(`Adding free product ${product.name} to customer ${customer.id}`);
@@ -42,7 +43,7 @@ export const handleAddFreeProduct = async ({
product,
prices,
entitlements,
pricesInput,
optionsList,
});
console.log(