feat: Add an action in Macro to change the priority (#6940)

This commit is contained in:
Muhsin Keloth
2023-04-24 17:14:30 +05:30
committed by GitHub
parent e3193dcabc
commit f1fc658a0d
5 changed files with 14 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ class Macro < ApplicationRecord
validate :json_actions_format
ACTIONS_ATTRS = %w[send_message add_label assign_team assign_agent mute_conversation change_status remove_label remove_assigned_team
resolve_conversation snooze_conversation send_email_transcript send_attachment add_private_note].freeze
resolve_conversation snooze_conversation change_priority send_email_transcript send_attachment add_private_note].freeze
def set_visibility(user, params)
self.visibility = params[:visibility]