mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-05-13 23:49:56 -05:00
Lots of patches here because the server crashes if Stripe, GitHub, Discord, etc. are not configured.
16 lines
587 B
Diff
16 lines
587 B
Diff
diff --git i/src/stripe.js w/src/stripe.js
|
|
index eddb382..b60c1c2 100644
|
|
--- i/src/stripe.js
|
|
+++ w/src/stripe.js
|
|
@@ -5,9 +5,8 @@ const database = require('./database');
|
|
const logger = require('./logger');
|
|
const config = require('../config.json');
|
|
|
|
-const stripe = new Stripe(config.stripe.secret_key);
|
|
-
|
|
async function handleStripeEvent(event) {
|
|
+ return;
|
|
if (event.type === 'customer.subscription.updated' || event.type === 'customer.subscription.deleted') {
|
|
const subscription = event.data.object;
|
|
const product = await stripe.products.retrieve(subscription.plan.product);
|