🐛 #23 Fix throw error when file doesn't exist
* #23 Fix throw error when file doesn't exist Run all the tests in once without special runner Add positive scenario Move coverage to the backend build workflow
This commit is contained in:
@@ -50,6 +50,9 @@ export async function formatUser(
|
||||
const companies = await Promise.all(
|
||||
userCompanies.map(async uc => {
|
||||
const company = await gr.services.companies.getCompany({ id: uc.group_id });
|
||||
if (!company) {
|
||||
throw new Error(`Company with id ${uc.group_id} doesn't exists!`);
|
||||
}
|
||||
return {
|
||||
role: uc.role as CompanyUserRole,
|
||||
status: "active" as CompanyUserStatus, // FIXME: with real status
|
||||
|
||||
Reference in New Issue
Block a user