Skip to content

Commit

Permalink
uncomment save
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarcia-appdev committed Dec 30, 2024
1 parent ac45566 commit 591d25c
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/app/api/notificationForm/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,17 @@ export async function POST(request: NextRequest) {
});
}

// await databases.createDocument(
// process.env.APPWRITE_DATABASE_ID as string,
// 'cohortWaitList',
// sdk.ID.unique(),
// {
// name: formData.name,
// email: formData.email,
// techStack: formData.techStack,
// applicationLayer: formData.applicationLayer,
// experience: formData.experience,
// notified: false,
// createdOn: new Date().toLocaleDateString(),
// updatedOn: new Date().toLocaleDateString(),
// }
// );
await databases.createDocument(
process.env.APPWRITE_DATABASE_ID as string,
'cohortWaitList',
sdk.ID.unique(),
{
name: formData.name,
email: formData.email,
notified: false,
createdOn: new Date().toLocaleDateString(),
}
);

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

0 comments on commit 591d25c

Please sign in to comment.