mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
add stripe
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import mongoose from "mongoose";
|
||||
import { Redis } from "~/server/services/CacheService";
|
||||
import EmailService from '@services/EmailService';
|
||||
import StripeService from '~/server/services/StripeService';
|
||||
|
||||
const config = useRuntimeConfig();
|
||||
let connection: mongoose.Mongoose;
|
||||
@@ -16,6 +17,8 @@ export default async () => {
|
||||
config.EMAIL_PASS,
|
||||
);
|
||||
|
||||
StripeService.init(config.STRIPE_SECRET, config.STRIPE_WH_SECRET);
|
||||
|
||||
|
||||
if (!connection || connection.connection.readyState == mongoose.ConnectionStates.disconnected) {
|
||||
console.log('[DATABASE] Connecting');
|
||||
|
||||
Reference in New Issue
Block a user