chore: make stripeAgeCheck not type undefined

This commit is contained in:
Marie 2024-08-29 18:41:32 +02:00
parent b3b5872e3e
commit b60dd15568
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
6 changed files with 15 additions and 15 deletions

View file

@ -41,7 +41,7 @@ export class StripeHookServerService {
request: FastifyRequest,
reply: FastifyReply,
) {
if (!this.config.stripeAgeCheck) return reply.code(400);
if (!this.config.stripeAgeCheck.enabled) return reply.code(400);
const stripe = new Stripe(this.config.stripeAgeCheck.key);