mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 02:23:32 +00:00
Fix overview counts query: cast enum to text for COALESCE
This commit is contained in:
@@ -6,7 +6,7 @@ SELECT
|
||||
'awaiting_response',
|
||||
COUNT(
|
||||
CASE
|
||||
WHEN COALESCE(c.meta->'last_message'->>'sender_type', c.last_message_sender) = 'contact' THEN 1
|
||||
WHEN COALESCE(c.meta->'last_message'->>'sender_type', c.last_message_sender::text) = 'contact' THEN 1
|
||||
END
|
||||
),
|
||||
'unassigned',
|
||||
|
||||
Reference in New Issue
Block a user