Fall out if not registration form
This commit is contained in:
parent
a8023fb3ed
commit
f011d5eb90
@ -28,4 +28,8 @@ small blurb about yourself (how long have you been playing/what’s 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
|
||||
|
||||
@ -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_")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user