Skip to content

Commit

Permalink
[MODAUD-174] - Fixed sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
azizbekxm committed Nov 15, 2023
1 parent 3132186 commit f8c661e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ WITH StatusChanges AS (SELECT id, action, piece_id, user_id, event_date, action_
)
SELECT id, action, piece_id, user_id, event_date, action_date, modified_content_snapshot,
(SELECT COUNT(*) AS total_records FROM StatusChanges
WHERE and modified_content_snapshot ->> 'receivingStatus' <> COALESCE(previous_status, ''))
FROM StatusChanges WHERE and modified_content_snapshot ->> 'receivingStatus' <> COALESCE(previous_status, '')
WHERE modified_content_snapshot ->> 'receivingStatus' <> COALESCE(previous_status, ''))
FROM StatusChanges WHERE modified_content_snapshot ->> 'receivingStatus' <> COALESCE(previous_status, '')
%s LIMIT $2 OFFSET $3
""";

Expand Down

0 comments on commit f8c661e

Please sign in to comment.