fix payments

This commit is contained in:
Emily
2024-06-12 15:43:23 +02:00
parent b7c3ef19ba
commit 6a7143c8d4
8 changed files with 173 additions and 89 deletions

View File

@@ -17,8 +17,10 @@ export default async () => {
config.EMAIL_PASS,
);
StripeService.init(config.STRIPE_SECRET, config.STRIPE_WH_SECRET, false);
if (!connection || connection.connection.readyState == mongoose.ConnectionStates.disconnected) {
console.log('[DATABASE] Connecting');
connection = await mongoose.connect(config.MONGO_CONNECTION_STRING);