Skip to content

Commit 591d25c

Browse files
uncomment save
1 parent ac45566 commit 591d25c

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

src/app/api/notificationForm/route.ts

+11-15
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,17 @@ export async function POST(request: NextRequest) {
6868
});
6969
}
7070

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+
);
8682

8783
return new Response('Success', { status: 200 });
8884
}

0 commit comments

Comments
 (0)