Skip to content

Commit

Permalink
Merge pull request #176 from Xitija/sdbv_rbac_changes
Browse files Browse the repository at this point in the history
chore : minor fixes
  • Loading branch information
Shubham4026 authored Mar 2, 2025
2 parents 09386c1 + d0f9317 commit 1dafb73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/adapters/postgres/cohortMembers-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export class PostgresCohortMembersService {
options,
order
);

if (results["userDetails"].length == 0) {
return APIResponse.error(
res,
Expand Down Expand Up @@ -457,7 +457,6 @@ export class PostgresCohortMembersService {
await this.fieldsService.getFieldsAndFieldsValues(
data.cohortMembershipId
);

fieldValuesForCohort = fieldValuesForCohort.map((field) => {
return {
fieldId: field?.fieldId,
Expand All @@ -467,7 +466,7 @@ export class PostgresCohortMembersService {
};
});

data["customField"] = fieldValues.concat(fieldValuesForCohort);
data["customField"] = fieldValues?.concat(fieldValuesForCohort);
results.userDetails.push(data);
}
}
Expand Down

0 comments on commit 1dafb73

Please sign in to comment.