From 410105786cee4b7a33313d9e7653a302f3de9285 Mon Sep 17 00:00:00 2001 From: John Yeo Date: Wed, 22 Jan 2025 18:07:35 +0000 Subject: [PATCH] fixed server build --- server/src/internal/api/customers/cusRouter.ts | 2 +- .../internal/api/customers/products/cusProductRouter.ts | 2 +- .../internal/customers/add-product/handleAddFreeProduct.ts | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/src/internal/api/customers/cusRouter.ts b/server/src/internal/api/customers/cusRouter.ts index e0e63478b..26afbba73 100644 --- a/server/src/internal/api/customers/cusRouter.ts +++ b/server/src/internal/api/customers/cusRouter.ts @@ -102,7 +102,7 @@ cusRouter.post("", async (req: any, res: any) => { product: defaultProduct, prices: defaultProduct.prices, entitlements: defaultProduct.entitlements, - pricesInput: [], + optionsList: [], }); } } catch (error) { diff --git a/server/src/internal/api/customers/products/cusProductRouter.ts b/server/src/internal/api/customers/products/cusProductRouter.ts index 590a73f03..b62fc0fba 100644 --- a/server/src/internal/api/customers/products/cusProductRouter.ts +++ b/server/src/internal/api/customers/products/cusProductRouter.ts @@ -301,7 +301,7 @@ attachRouter.post("", async (req: any, res) => { env, prices, entitlements, - pricesInput, + optionsList, }); return; } diff --git a/server/src/internal/customers/add-product/handleAddFreeProduct.ts b/server/src/internal/customers/add-product/handleAddFreeProduct.ts index 77ce10c99..f893bb6e8 100644 --- a/server/src/internal/customers/add-product/handleAddFreeProduct.ts +++ b/server/src/internal/customers/add-product/handleAddFreeProduct.ts @@ -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(