Fall out if not registration form

This commit is contained in:
AMay 2026-08-15 12:54:20 -05:00
parent a8023fb3ed
commit f011d5eb90
2 changed files with 12 additions and 1 deletions

View File

@ -28,4 +28,8 @@ small blurb about yourself (how long have you been playing/whats your favorit
general playing level
where are you from
option to apply to waitlist instead of main registration
option to apply to waitlist instead of main registration
Prevent re-sign ups.
Update waitlist selection on form when registration hits cap
Volunteer form

View File

@ -205,6 +205,12 @@ const server = serve({
}:{
async POST(req){
const data = await req.body.json();
if(data.data.object.custom_fields.length!=2)return Response.json({
allowed:false,
reason:"Not registration!"
});
const update=(data)=>{
appendFile("events.txt",JSON.stringify(data),async err => {
if(err){
@ -212,6 +218,7 @@ const server = serve({
appendFile("events.txt",JSON.stringify(data));
return;
}
const verify=(data?.data?.object?.id)??undefined
if(verify){
const isAllowed=verify.startsWith("cs_live_")||verify.startsWith("cs_test_")