mirror of
				https://github.com/abhinavxd/libredesk.git
				synced 2025-11-03 21:43:35 +00:00 
			
		
		
		
	adds missing colunms from select query were missing for webhook events
This commit is contained in:
		@@ -117,6 +117,8 @@ SELECT
 | 
				
			|||||||
   c.sla_policy_id,
 | 
					   c.sla_policy_id,
 | 
				
			||||||
   c.meta,
 | 
					   c.meta,
 | 
				
			||||||
   sla.name as sla_policy_name,
 | 
					   sla.name as sla_policy_name,
 | 
				
			||||||
 | 
					   c.last_message_at,
 | 
				
			||||||
 | 
					   c.last_message_sender,
 | 
				
			||||||
   c.last_message,
 | 
					   c.last_message,
 | 
				
			||||||
   c.custom_attributes,
 | 
					   c.custom_attributes,
 | 
				
			||||||
   (SELECT COALESCE(
 | 
					   (SELECT COALESCE(
 | 
				
			||||||
@@ -132,10 +134,16 @@ SELECT
 | 
				
			|||||||
   ct.first_name as "contact.first_name",
 | 
					   ct.first_name as "contact.first_name",
 | 
				
			||||||
   ct.last_name as "contact.last_name", 
 | 
					   ct.last_name as "contact.last_name", 
 | 
				
			||||||
   ct.email as "contact.email",
 | 
					   ct.email as "contact.email",
 | 
				
			||||||
 | 
					   ct.type as "contact.type",
 | 
				
			||||||
 | 
					   ct.availability_status as "contact.availability_status",
 | 
				
			||||||
   ct.avatar_url as "contact.avatar_url",
 | 
					   ct.avatar_url as "contact.avatar_url",
 | 
				
			||||||
   ct.phone_number as "contact.phone_number",
 | 
					   ct.phone_number as "contact.phone_number",
 | 
				
			||||||
   ct.phone_number_calling_code as "contact.phone_number_calling_code",
 | 
					   ct.phone_number_calling_code as "contact.phone_number_calling_code",
 | 
				
			||||||
   ct.custom_attributes as "contact.custom_attributes",
 | 
					   ct.custom_attributes as "contact.custom_attributes",
 | 
				
			||||||
 | 
					   ct.avatar_url as "contact.avatar_url",
 | 
				
			||||||
 | 
					   ct.enabled as "contact.enabled",
 | 
				
			||||||
 | 
					   ct.last_active_at as "contact.last_active_at",
 | 
				
			||||||
 | 
					   ct.last_login_at as "contact.last_login_at",
 | 
				
			||||||
   as_latest.first_response_deadline_at,
 | 
					   as_latest.first_response_deadline_at,
 | 
				
			||||||
   as_latest.resolution_deadline_at,
 | 
					   as_latest.resolution_deadline_at,
 | 
				
			||||||
   as_latest.id as applied_sla_id,
 | 
					   as_latest.id as applied_sla_id,
 | 
				
			||||||
@@ -415,11 +423,15 @@ AND NOT(m.id = ANY($1::INT[]))
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
-- name: get-message
 | 
					-- name: get-message
 | 
				
			||||||
SELECT
 | 
					SELECT
 | 
				
			||||||
 | 
					    m.id,
 | 
				
			||||||
    m.created_at,
 | 
					    m.created_at,
 | 
				
			||||||
    m.updated_at,
 | 
					    m.updated_at,
 | 
				
			||||||
    m.status,
 | 
					    m.status,
 | 
				
			||||||
    m.type,
 | 
					    m.type,
 | 
				
			||||||
    m.content,
 | 
					    m.content,
 | 
				
			||||||
 | 
					    m.text_content,
 | 
				
			||||||
 | 
					    m.content_type,
 | 
				
			||||||
 | 
					    m.conversation_id,
 | 
				
			||||||
    m.uuid,
 | 
					    m.uuid,
 | 
				
			||||||
    m.private,
 | 
					    m.private,
 | 
				
			||||||
    m.sender_type,
 | 
					    m.sender_type,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user