chore: fix sla email notifications (#9192)
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -50,6 +50,7 @@ class Sla::EvaluateAppliedSlaService
|
||||
end
|
||||
|
||||
def get_last_message_id(conversation)
|
||||
# TODO: refactor the method to fetch last message without reply
|
||||
conversation.messages.where(message_type: :incoming).last&.id
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user