mirror of
https://github.com/System-End/site.git
synced 2026-04-19 19:45:07 +00:00
Update join.js
This commit is contained in:
parent
e6c4f6c0cc
commit
10aa630a1c
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ export default async function handler(req, res) {
|
|||
let data = req.body || {}
|
||||
const open = process.env.NEXT_PUBLIC_OPEN === 'true'
|
||||
const waitlist = !open
|
||||
const isAdult = data.year ? new Date().getFullYear() - data.year >= 18 : false
|
||||
const isAdult = data.year ? new Date().getFullYear() - data.year >= 19 : false
|
||||
|
||||
if (isAdult) {
|
||||
const mail = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue