Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/adapters/postgres/cohortMembers-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ export class PostgresCohortMembersService {
return APIResponse.error(
res,
apiId,
API_RESPONSES.USER_NOTFOUND,
API_RESPONSES.USER_NOT_MEMBER_OF_COHORT,
API_RESPONSES.NOT_FOUND,
HttpStatus.OK
HttpStatus.NOT_FOUND
Comment thread
vaibhavsTekdi marked this conversation as resolved.
);
}
userYearExistInYear = getYearExitUser.map(
Expand Down
1 change: 1 addition & 0 deletions src/common/utils/response.messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const API_RESPONSES = {
TENANT_ID_NOTFOUND: '"Invalid input: TenantId must be a valid UUID."',
COHORT_NOTFOUND: 'Cohort not exist for this year.',
USER_NOTFOUND: 'User not exist for this year.',
USER_NOT_MEMBER_OF_COHORT: 'User is not a member of any cohort',
USER_DETAIL_NOTFOUND: 'User details not found',
COHORT_GET_SUCCESSFULLY: 'Cohort members details fetched successfully.',
COHORT_USER_NOTFOUND: 'User not exist in this cohort for this year.',
Expand Down