Bugfix order process/account update

This commit is contained in:
2024-11-15 11:36:17 +01:00
parent c61a628ed4
commit d92533ab6a
9 changed files with 194 additions and 206 deletions

View File

@@ -154,7 +154,8 @@ account.patch("/", verifyToken, (req: Request, res: Response) => {
}
// Status: 200 OK
res.status(200).json(account)
let accountData = await Account.findByPk(req.body.id, { include: [ Payment, AccountRole, Address ]})
res.status(200).json(accountData)
})
.catch(error => {
// Status: 400 Bad request