File tree Expand file tree Collapse file tree 6 files changed +23
-7
lines changed
Expand file tree Collapse file tree 6 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 2727 steps :
2828 - uses : actions/checkout@v4
2929 - uses : superfly/flyctl-actions/setup-flyctl@master
30- - run : flyctl deploy --config apps/api/fly.toml --remote-only -e APP_VERSION=${{ needs.compute-version.outputs.version }}
30+ - run : flyctl deploy --config apps/api/fly.toml --dockerfile apps/api/Dockerfile -- remote-only -e APP_VERSION=${{ needs.compute-version.outputs.version }}
3131 env :
3232 FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
3333
Original file line number Diff line number Diff line change 11import { StripeSync } from "@supabase/stripe-sync-engine" ;
22
33import { env } from "../env" ;
4-
5- export const STRIPE_API_VERSION = "2023-10-16" ;
4+ import { STRIPE_API_VERSION } from "./stripe" ;
65
76export const stripeSync = new StripeSync ( {
87 schema : "stripe" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import Stripe from "stripe";
22
33import { env } from "../env" ;
44
5+ export const STRIPE_API_VERSION = "2025-10-29.clover" ;
6+
57export const stripe = new Stripe ( env . STRIPE_SECRET_KEY , {
6- apiVersion : "2025-10-29.clover" ,
8+ apiVersion : STRIPE_API_VERSION ,
79} ) ;
Original file line number Diff line number Diff line change @@ -58,13 +58,28 @@ webhook.post(
5858 error instanceof Error &&
5959 error . message === "Unhandled webhook event"
6060 ) {
61- // stripe-sync-engine doesn't support this event type, skip silently
61+ Sentry . captureMessage (
62+ `Unhandled Stripe webhook event: ${ stripeEvent . type } ` ,
63+ {
64+ level : "warning" ,
65+ tags : {
66+ webhook : "stripe" ,
67+ event_type : stripeEvent . type ,
68+ } ,
69+ extra : {
70+ api_version : stripeEvent . api_version ,
71+ } ,
72+ } ,
73+ ) ;
6274 } else {
6375 Sentry . captureException ( error , {
6476 tags : {
6577 webhook : "stripe" ,
6678 event_type : stripeEvent . type ,
6779 } ,
80+ extra : {
81+ api_version : stripeEvent . api_version ,
82+ } ,
6883 } ) ;
6984 return c . json ( { error : "stripe_sync_failed" } , 500 ) ;
7085 }
Original file line number Diff line number Diff line change 11import { StripeSync } from "@supabase/stripe-sync-engine" ;
22import { parseArgs } from "util" ;
33
4- import { STRIPE_API_VERSION } from "../integration/stripe-sync " ;
4+ import { STRIPE_API_VERSION } from "../integration/stripe" ;
55
66const { DATABASE_URL , STRIPE_SECRET_KEY , STRIPE_WEBHOOK_SECRET } = Bun . env ;
77
Original file line number Diff line number Diff line change 1- v2.65.5
1+ v2.67.1
You can’t perform that action at this time.
0 commit comments