Skip to content

Commit

Permalink
FIX: Corrected key for supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
adjiap committed Jul 23, 2024
1 parent d5025f1 commit c5ae6c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/supabaseadmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c5ae6c7

Please sign in to comment.