Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kobakazu0429 committed Dec 13, 2023
1 parent c44f919 commit c733f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ type Response =
export async function compiler(src: string) {
compileLogOut(_("compiler.start"));

const userId = getUser()?.id;
const user = getUser();

const res = await (
await fetch(import.meta.env.VITE_COMPILER_API, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({ src, userId })
body: JSON.stringify({ src, user })
})
).json();

Expand Down

0 comments on commit c733f16

Please sign in to comment.