chore: make stripeAgeCheck not type undefined
This commit is contained in:
parent
b3b5872e3e
commit
b60dd15568
6 changed files with 15 additions and 15 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue