Skip to content

Commit 001b4e3

Browse files
committed
error handling
1 parent b5f1c07 commit 001b4e3

File tree

1 file changed

+11
-0
lines changed
  • tooling/sparta/packages/express/src/routes/users

1 file changed

+11
-0
lines changed

tooling/sparta/packages/express/src/routes/users/users.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,17 @@ router.post("/", async (req: Request, res: Response) => {
453453
humanPassport,
454454
} = req.body;
455455

456+
logger.debug(
457+
{
458+
discordUserId,
459+
discordUsername,
460+
walletAddress,
461+
role,
462+
humanPassport,
463+
},
464+
"Creating user in route"
465+
);
466+
456467
// Validate required fields
457468
if (!discordUserId || !discordUsername) {
458469
return res.status(400).json({

0 commit comments

Comments
 (0)