From 8f1b17f894b624081a4422b69353f063478516f1 Mon Sep 17 00:00:00 2001 From: Maxime Beauchamp <15185355+baktun14@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:36:03 -0400 Subject: [PATCH] fix(api): stripe api version --- apps/api/src/services/external/stripeService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/services/external/stripeService.ts b/apps/api/src/services/external/stripeService.ts index 5cc55ff4d..ff1d705ba 100644 --- a/apps/api/src/services/external/stripeService.ts +++ b/apps/api/src/services/external/stripeService.ts @@ -4,7 +4,7 @@ import Stripe from "stripe"; import { env } from "@src/utils/env"; -const stripe = new Stripe(process.env.StripeSecretKey, { apiVersion: "2022-08-01" }); +const stripe = new Stripe(process.env.StripeSecretKey, { apiVersion: "2024-06-20" }); export async function getBillingPortalUrl(userId: string) { const userSettings = await UserSetting.findOne({ where: { userId: userId } });