Skip to content

Commit

Permalink
Merge pull request #633 from code4romania/feat/expose-more-data-to-vic
Browse files Browse the repository at this point in the history
feat: [contracts] expose more data to vic to be able to generate temp…
  • Loading branch information
radulescuandrew committed Sep 3, 2024
2 parents 776fed6 + 0b67797 commit 8f5239b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ export interface IUserWithOrganization {
activityArea: string;
logo: string;
description: string;
cui: string;
legalReprezentativeFullName: string;
legalReprezentativeRole: string;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class UserOrganizationService {
}

// check if there is an organization id - this methods also handles organization not found
const { organizationGeneral, organizationActivity } =
const { organizationGeneral, organizationActivity, organizationLegal } =
await this.organizationService.findWithRelations(user.organizationId);

// parse organization activityArea to string
Expand All @@ -61,6 +61,11 @@ export class UserOrganizationService {
activityArea: activityArea,
logo: organizationGeneral.logo,
description: organizationGeneral.shortDescription,
cui: organizationGeneral.cui,
legalReprezentativeFullName:
organizationLegal?.legalReprezentative?.fullName || '',
legalReprezentativeRole:
organizationLegal?.legalReprezentative?.role || '',
},
};
} catch (error) {
Expand Down

0 comments on commit 8f5239b

Please sign in to comment.