Skip to content

Commit

Permalink
fix: switch names to submission
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsp45 committed Apr 7, 2024
1 parent c1cbda7 commit 663b73b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@types/react": "^18.2.58",
"@types/react-dom": "^18.2.19",
"emailjs": "^4.0.3",
"emoji-picker-react": "^4.9.2",
"flowbite": "^2.3.0",
"heroicons": "^2.1.1",
"micromodal": "^0.4.10",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/api/projects/create.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ShortUniqueId from "short-unique-id";
import type { APIRoute } from "astro";
import { createClient } from "@supabase/supabase-js";
import type { DeliverProjectItem } from "~/types";
import type { SubmitProjectItem } from "~/types";
import { SMTPClient } from "emailjs";

export const prerender = false;
Expand Down Expand Up @@ -37,7 +37,7 @@ export const POST: APIRoute = async ({ request }) => {
);
}

const data: DeliverProjectItem = {
const data: SubmitProjectItem = {
team_code: formData.get("team_code")?.toString().replace("#", "") ?? "",
name: formData.get("name")?.toString() ?? "",
description: formData.get("description")?.toString() ?? "",
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface JoinTeamItem {
member_email: string;
}

export interface DeliverProjectItem {
export interface SubmitProjectItem {
team_code: string;
name: string;
description: string;
Expand Down

0 comments on commit 663b73b

Please sign in to comment.