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 b13ecf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 b13ecf6

Please sign in to comment.