Skip to content

Commit 1a85cb3

Browse files
committed
fix: typo
1 parent 121dc63 commit 1a85cb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ PUBLIC_SUPER_USER_ID=
88
STRIPE_KEY=
99
STRIPE_WEBHOOK_SECRET_PRICES=
1010
STRIPE_WEBHOOK_SECRET_SUBSCRIPTIONS=
11-
STRIPE_WEBHOOOK_SECRET_PRODUCTS=
11+
STRIPE_WEBHOOK_SECRET_PRODUCTS=
1212
SUPABASE_SERVICE_KEY=
1313
SUPABASE_SCRIPTERS_WEBHOOK_SECRET=

src/routes/api/stripe/products/+server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { STRIPE_WEBHOOOK_SECRET_PRODUCTS } from "$env/static/private"
1+
import { STRIPE_WEBHOOK_SECRET_PRODUCTS } from "$env/static/private"
22
import { stripe } from "$lib/server/stripe.server"
33
import { supabaseAdmin } from "$lib/server/supabase.server"
44
import { formatError } from "$lib/utils"
@@ -12,7 +12,7 @@ export const POST = async ({ request }) => {
1212
const body = await request.text()
1313

1414
try {
15-
event = stripe.webhooks.constructEvent(body, sig, STRIPE_WEBHOOOK_SECRET_PRODUCTS)
15+
event = stripe.webhooks.constructEvent(body, sig, STRIPE_WEBHOOK_SECRET_PRODUCTS)
1616
} catch (err) {
1717
console.log(err)
1818
throw error(404, "Event is not valid! Body: " + body + " Error: " + err)

0 commit comments

Comments
 (0)