500 fix
This commit is contained in:
parent
705c3d63aa
commit
1270fb3ae9
@ -233,7 +233,9 @@ export async function getUserWithCompanyAndApplications(
|
|||||||
error(404, 'User not found');
|
error(404, 'User not found');
|
||||||
}
|
}
|
||||||
let user = data[0].user;
|
let user = data[0].user;
|
||||||
user.company = data[0].company;
|
if (data[0].company) {
|
||||||
|
user.company = data[0].company;
|
||||||
|
}
|
||||||
|
|
||||||
user.createdAt = new Date(user.createdAt);
|
user.createdAt = new Date(user.createdAt);
|
||||||
user.lastSignIn = new Date(user.lastSignIn);
|
user.lastSignIn = new Date(user.lastSignIn);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user