Fix user detail endpoint response format

Wrap user detail response in { data: { user } } to match frontend expectation.
This commit is contained in:
2026-01-22 13:58:56 -07:00
parent f2c459ea88
commit 4a26559961

View File

@ -106,9 +106,11 @@ router.get('/users/:id', async (req, res) => {
.toArray();
res.json({
user: {
...user,
recentActivity
data: {
user: {
...user,
recentActivity
}
}
});
} catch (error) {