From babe1028e227f130f7db1d3c6361d1a9f794551e Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 17 Jul 2023 13:43:41 +0530 Subject: [PATCH] feat: add summary to conversation json --- .../api/v1/conversations/partials/_conversation.json.jbuilder | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/api/v1/conversations/partials/_conversation.json.jbuilder b/app/views/api/v1/conversations/partials/_conversation.json.jbuilder index a36366f9e..dc4cb6714 100644 --- a/app/views/api/v1/conversations/partials/_conversation.json.jbuilder +++ b/app/views/api/v1/conversations/partials/_conversation.json.jbuilder @@ -45,4 +45,6 @@ json.unread_count conversation.unread_incoming_messages.count json.last_non_activity_message conversation.messages.non_activity_messages.first.try(:push_event_data) json.last_activity_at conversation.last_activity_at.to_i json.priority conversation.priority +json.summary conversation.summary +json.summary_generated_at conversation.summary_generated_at.to_i json.waiting_since conversation.waiting_since.to_i.to_i