Skip to content

Commit

Permalink
fix: #6909 missing image for employee/organization selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-rocket committed Oct 30, 2023
1 parent f85fe38 commit 1be46bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class OrganizationSelectorComponent
const { items = [] } = await this.userOrganizationService.getAll(
[
'organization',
'organization.image',
'organization.contact',
'organization.featureOrganizations',
'organization.featureOrganizations.feature'
Expand Down
6 changes: 5 additions & 1 deletion packages/core/src/employee/employee.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export class EmployeeService extends TenantAwareCrudService<Employee> {
}
},
relations: {
...(withUser ? { user: true } : {})
...(withUser ? {
user: {
image: true
}
} : {})
}
});
query.where((qb: SelectQueryBuilder<Employee>) => {
Expand Down

0 comments on commit 1be46bc

Please sign in to comment.