Skip to content

Commit

Permalink
fix: Simplify character object handling in account update route
Browse files Browse the repository at this point in the history
- Use req.body directly for character object
  • Loading branch information
tercel committed Feb 11, 2025
1 parent bf2cb9e commit 740137b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client-direct/src/manage-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function createManageApiRouter(
});

router.post("/account/update", async (req, res) => {
const character: any = {...req.body};
const character = req.body;
try {
const userId = character.id || stringToUuid(character.username || character.name || uuidv4());
let account = await directClient.db.getAccountById(userId);
Expand Down

0 comments on commit 740137b

Please sign in to comment.