From 82ba730dd848fe3313c70a2d751ea22bbeb8b663 Mon Sep 17 00:00:00 2001 From: 1AhmedYasser <26207361+1AhmedYasser@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:20:29 +0200 Subject: [PATCH] chore(1714): Make isFiveRatingScale Global --- DSL/Resql/users/POST/get-chat-by-id.sql | 3 ++- DSL/Resql/users/POST/get-cs-all-ended-chats.sql | 3 ++- DSL/Resql/users/POST/update-test-chat.sql | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/DSL/Resql/users/POST/get-chat-by-id.sql b/DSL/Resql/users/POST/get-chat-by-id.sql index 2784931bf..8a0aa6370 100644 --- a/DSL/Resql/users/POST/get-chat-by-id.sql +++ b/DSL/Resql/users/POST/get-chat-by-id.sql @@ -2,7 +2,8 @@ WITH rating_config AS ( SELECT value AS is_five_rating_scale FROM configuration WHERE key = 'isFiveRatingScale' - AND id IN (SELECT max(id) FROM configuration WHERE key = 'isFiveRatingScale' GROUP BY key) + AND "domain" IS NULL + AND id IN (SELECT max(id) FROM configuration WHERE key = 'isFiveRatingScale' AND "domain" IS NULL) AND NOT deleted ), csa_title_config AS ( diff --git a/DSL/Resql/users/POST/get-cs-all-ended-chats.sql b/DSL/Resql/users/POST/get-cs-all-ended-chats.sql index 4e7df0a36..b9d8ec410 100644 --- a/DSL/Resql/users/POST/get-cs-all-ended-chats.sql +++ b/DSL/Resql/users/POST/get-cs-all-ended-chats.sql @@ -2,7 +2,8 @@ WITH rating_config AS ( SELECT value AS is_five_rating_scale FROM configuration WHERE key = 'isFiveRatingScale' - AND id IN (SELECT max(id) FROM configuration WHERE key = 'isFiveRatingScale' GROUP BY key) + AND "domain" IS NULL + AND id IN (SELECT max(id) FROM configuration WHERE key = 'isFiveRatingScale' AND "domain" IS NULL) AND NOT deleted ), MaxChatHistoryComments AS ( diff --git a/DSL/Resql/users/POST/update-test-chat.sql b/DSL/Resql/users/POST/update-test-chat.sql index f38f3cebc..521e0932c 100644 --- a/DSL/Resql/users/POST/update-test-chat.sql +++ b/DSL/Resql/users/POST/update-test-chat.sql @@ -2,7 +2,8 @@ WITH rating_config AS ( SELECT value AS is_five_rating_scale FROM configuration WHERE key = 'isFiveRatingScale' - AND id IN (SELECT max(id) FROM configuration WHERE key = 'isFiveRatingScale' GROUP BY key) + AND "domain" IS NULL + AND id IN (SELECT max(id) FROM configuration WHERE key = 'isFiveRatingScale' AND "domain" IS NULL) AND NOT deleted ) INSERT INTO chat(base_id, customer_support_id, customer_support_display_name, end_user_id, end_user_first_name,