Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/project creation members #8264

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: project members IDs on creation
  • Loading branch information
GloireMutaliko21 committed Sep 26, 2024
commit 3caee38cc8ea6ae4f695c6c44257ec4afe9ae1fe
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