fix: remove redundant connectDB in cancel-subscription
This commit is contained in:
parent
bbe94f0efb
commit
db04b270f4
1 changed files with 0 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
|||
// Cancel member subscription
|
||||
import { connectDB } from "../../utils/mongoose.js";
|
||||
import Member from "../../models/member.js";
|
||||
|
||||
const HELCIM_API_BASE = "https://api.helcim.com/v2";
|
||||
|
|
@ -7,7 +6,6 @@ const HELCIM_API_BASE = "https://api.helcim.com/v2";
|
|||
export default defineEventHandler(async (event) => {
|
||||
try {
|
||||
const member = await requireAuth(event);
|
||||
await connectDB();
|
||||
const config = useRuntimeConfig(event);
|
||||
|
||||
// If already on free tier, nothing to cancel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue