Skip to content

Commit

Permalink
Merge pull request #114 from souravbhowmik1999/cohortMemberUpdate
Browse files Browse the repository at this point in the history
Cohort member updatedAt field value changes
  • Loading branch information
Shubham4026 authored Dec 12, 2024
2 parents 495a8e3 + cf8a9ba commit 08217d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/postgres/cohortMembers-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -620,13 +620,13 @@ export class PostgresCohortMembersService {
}

let query = `SELECT U."userId", U.username, U.name, R.name AS role, U.district, U.state,U.mobile,U."deviceId",
CM."status", CM."statusReason",CM."cohortMembershipId",CM."status",CM."createdAt", U."createdAt", U."updatedAt",U."createdBy",U."updatedBy", COUNT(*) OVER() AS total_count FROM public."CohortMembers" CM
CM."status", CM."statusReason",CM."cohortMembershipId",CM."status",CM."createdAt", CM."updatedAt",U."createdBy",U."updatedBy", COUNT(*) OVER() AS total_count FROM public."CohortMembers" CM
INNER JOIN public."Users" U
ON CM."userId" = U."userId"
INNER JOIN public."UserRolesMapping" UR
ON UR."userId" = U."userId"
INNER JOIN public."Roles" R
ON R."roleId" = UR."roleId" ${whereCase}`;
ON R."roleId" = UR."roleId" ${whereCase}`;

options.forEach((option) => {
if (option[0] === "limit") {
Expand Down

0 comments on commit 08217d3

Please sign in to comment.