Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Oct 25, 2024
1 parent 5c23e43 commit 0d6396a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ export async function addUser(
password: string,
): Promise<boolean> {
try {
const resp = await fetcher.post("/admin/addUser");
await fetcher.post("/admin/addUser", {
name,
username,
password,
});
return true;
} catch (error) {
return false;
Expand Down

0 comments on commit 0d6396a

Please sign in to comment.