500 fix
All checks were successful
ci / docker_image (push) Successful in 1m39s
ci / deploy (push) Successful in 16s

This commit is contained in:
Drake Marino 2025-03-29 17:59:30 -05:00
parent 705c3d63aa
commit 1270fb3ae9

View File

@ -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;
if (data[0].company) {
user.company = 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);