File tree 1 file changed +11
-15
lines changed
src/app/api/notificationForm
1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -68,21 +68,17 @@ export async function POST(request: NextRequest) {
68
68
} ) ;
69
69
}
70
70
71
- // await databases.createDocument(
72
- // process.env.APPWRITE_DATABASE_ID as string,
73
- // 'cohortWaitList',
74
- // sdk.ID.unique(),
75
- // {
76
- // name: formData.name,
77
- // email: formData.email,
78
- // techStack: formData.techStack,
79
- // applicationLayer: formData.applicationLayer,
80
- // experience: formData.experience,
81
- // notified: false,
82
- // createdOn: new Date().toLocaleDateString(),
83
- // updatedOn: new Date().toLocaleDateString(),
84
- // }
85
- // );
71
+ await databases . createDocument (
72
+ process . env . APPWRITE_DATABASE_ID as string ,
73
+ 'cohortWaitList' ,
74
+ sdk . ID . unique ( ) ,
75
+ {
76
+ name : formData . name ,
77
+ email : formData . email ,
78
+ notified : false ,
79
+ createdOn : new Date ( ) . toLocaleDateString ( ) ,
80
+ }
81
+ ) ;
86
82
87
83
return new Response ( 'Success' , { status : 200 } ) ;
88
84
}
You can’t perform that action at this time.
0 commit comments