Admin interface to review, filter, and batch-invite the 95 pre-registrants from Baby Ghosts. Accept-invitation page pre-fills their data and collects circle, pronouns, motivation, contribution tier, and agreement before creating their member record.
13 lines
346 B
JavaScript
13 lines
346 B
JavaScript
import PreRegistration from '../../../models/preRegistration.js'
|
|
import { connectDB } from '../../../utils/mongoose.js'
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
await requireAdmin(event)
|
|
await connectDB()
|
|
|
|
const preRegistrants = await PreRegistration.find()
|
|
.sort({ createdAt: -1 })
|
|
.lean()
|
|
|
|
return preRegistrants
|
|
})
|