Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ csa_ids AS (
AND EXISTS (
SELECT 1 FROM message m
WHERE m.chat_base_id = b.base_id
AND m.event = 'taken-over' or m.event = 'pending-assigned'
AND (m.event = 'taken-over' or m.event = 'pending-assigned' or m.event = 'forwarded_to_backoffice')
)
AND (
:showTest = TRUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ n_chats AS (
AND created::timestamptz BETWEEN :start::timestamptz AND :end::timestamptz
AND CASE
WHEN (SELECT COALESCE(is_five_rating_scale, 'false') = 'true' FROM rating_config)
THEN feedback_rating_five IS NOT NULL AND feedback_rating_five <= 5
THEN feedback_rating_five IS NOT NULL AND feedback_rating_five <= 3
ELSE feedback_rating IS NOT NULL AND feedback_rating <= 5
END
GROUP BY base_id
Expand Down
Loading