Skip to content

Commit

Permalink
Merge pull request #8264 from ever-co/fix/project-creation-members
Browse files Browse the repository at this point in the history
Fix/project creation members
  • Loading branch information
rahul-rocket authored Sep 26, 2024
2 parents 39d9ab1 + 5f61b9b commit 57015c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/src/organization-team.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export interface IOrganizationTeamCreateInput extends IBasePerTenantAndOrganizat
requirePlanToTrack?: boolean;
public?: boolean;
profile_link?: string;
memberIds?: string[];
managerIds?: string[];
memberIds?: ID[];
managerIds?: ID[];
tags?: ITag[];
projects?: IOrganizationProject[];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export class OrganizationProjectService extends TenantAwareCrudService<Organizat

try {
// Retrieve members and managers IDs
const managerIds = managers.map((manager) => manager.id);
const memberIds = members.map((member) => member.id);
const managerIds = managers.map((manager) => manager.employeeId);
const memberIds = members.map((member) => member.employeeId);

// If the employee creates the project, default add as a manager
try {
Expand Down Expand Up @@ -229,8 +229,8 @@ export class OrganizationProjectService extends TenantAwareCrudService<Organizat

try {
// Retrieve members and managers IDs
const managerIds = managers.map((manager) => manager.id);
const memberIds = members.map((member) => member.id);
const managerIds = managers.map((manager) => manager.employeeId);
const memberIds = members.map((member) => member.employeeId);
if (isNotEmpty(memberIds) || isNotEmpty(managerIds)) {
// Find the manager role
const role = await this._roleService.findOneByWhereOptions({
Expand Down

0 comments on commit 57015c2

Please sign in to comment.