Skip to content

Commit

Permalink
fix: db query (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsp45 authored Mar 1, 2024
1 parent 055aa72 commit 1a7739c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/api/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export const POST: APIRoute = async ({ request }) => {
const data: DataItem = {
name: formData.get("name")?.toString() ?? "",
email: formData.get("email")?.toString() ?? "",
mobile: formData.get("mobile")?.toString() ?? "",
age: Number(formData.get("age")),
confirmation: randomUUID().toUpperCase(),
university: formData.get("university")?.toString() ?? "",
course: formData.get("course")?.toString() ?? "",
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export interface FaqItem {
export interface DataItem {
name: string;
email: string;
mobile: string;
age: number;
confirmation: string;
university: string;
course: string;
Expand Down

0 comments on commit 1a7739c

Please sign in to comment.