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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ n_chats AS (
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 <= 3
ELSE feedback_rating IS NOT NULL AND feedback_rating <= 5
ELSE feedback_rating IS NOT NULL AND feedback_rating <= 6
END
GROUP BY base_id
),
Expand Down
2 changes: 1 addition & 1 deletion DSL/Resql/analytics/POST/get-cs-all-ended-chats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ MaxChats AS (
AND (
(c.feedback_rating_five IS NOT NULL AND c.feedback_rating_five <= 3)
OR
(c.feedback_rating IS NOT NULL AND c.feedback_rating <= 5)
(c.feedback_rating IS NOT NULL AND c.feedback_rating <= 6)
)
GROUP BY base_id
),
Expand Down