Skip to content

Commit

Permalink
fix: change HTTP body
Browse files Browse the repository at this point in the history
  • Loading branch information
algoORgoal committed May 14, 2024
1 parent 432d7ac commit bf5b7f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/auth/model/auth.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { API_URL, HTTPHeaderKey } from "@/src/shared/api/config";
import { University } from "@/src/widgets/sign-up/lib/sign-up-schema";
import { HttpMethods } from "msw";

interface AuthDetails {
Expand All @@ -15,9 +16,10 @@ export const signUp = async (authDetails: AuthDetails) => {
headers: {
["content-type"]: "application/json",
},
// TODO change schoolId based on university
body: JSON.stringify({
...authDetails,
schoolId: authDetails.university === "건국대학교" && 0,
schoolId: 1,
phoneNum: authDetails.contact,
}),
});
Expand Down

0 comments on commit bf5b7f4

Please sign in to comment.