fix: remove redundant connectDB in verify (requireAuth handles it)
This commit is contained in:
parent
79c712a9e9
commit
d4d9629d83
1 changed files with 0 additions and 3 deletions
|
|
@ -1,11 +1,8 @@
|
|||
// server/api/auth/verify.post.js
|
||||
import jwt from 'jsonwebtoken'
|
||||
import Member from '../../models/member.js'
|
||||
import { connectDB } from '../../utils/mongoose.js'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
await connectDB()
|
||||
|
||||
const body = await readBody(event)
|
||||
const token = body?.token
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue