Refactor route handlers and CMS clients
Refactored the route handlers to use a new `enhanceRouteHandler` function for better control over request handlers and user authentication. CMS clients are now created using factory functions for better encapsulation and control over instance creation. Renamed `client.ts` in 'keystatic' to `keystatic-client.ts`.
This commit is contained in:
@@ -45,7 +45,7 @@ export class StripeWebhookHandlerService
|
||||
|
||||
const stripe = await this.loadStripe();
|
||||
|
||||
const event = stripe.webhooks.constructEvent(
|
||||
const event = await stripe.webhooks.constructEventAsync(
|
||||
body,
|
||||
signature,
|
||||
webhooksSecret,
|
||||
|
||||
Reference in New Issue
Block a user