From c5ae6c7998c508c05a7443c13a5f775613075921 Mon Sep 17 00:00:00 2001 From: adjiap <20769489+adjiap@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:22:30 +0200 Subject: [PATCH] FIX: Corrected key for supabase --- libs/supabaseadmin.ts | 2 +- types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/supabaseadmin.ts b/libs/supabaseadmin.ts index 0aa668e..eb62be4 100644 --- a/libs/supabaseadmin.ts +++ b/libs/supabaseadmin.ts @@ -58,7 +58,7 @@ const upsertPriceRecord = async (price: Stripe.Price) => { unit_amount: price.unit_amount ?? undefined, interval: price.recurring?.interval, interval_count: price.recurring?.interval_count, - trial_period_day: price.recurring?.trial_period_days, + trial_period_days: price.recurring?.trial_period_days, metadata: price.metadata, }; diff --git a/types.ts b/types.ts index d313b87..5e65f73 100644 --- a/types.ts +++ b/types.ts @@ -41,7 +41,7 @@ export interface Price{ type?: Stripe.Price.Type; interval?: Stripe.Price.Recurring.Interval; interval_count?: number; - trial_period_day?: number | null; + trial_period_days?: number | null; metadata?: Stripe.Metadata; products?: Product; }