feat: Add an action on automation to change the priority (#6925)

This commit is contained in:
Muhsin Keloth
2023-04-20 11:31:33 +05:30
committed by GitHub
parent 527042afd1
commit d1584eea72
5 changed files with 50 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ class ActionService
@conversation.update!(status: status[0])
end
def change_priority(priority)
@conversation.update!(priority: (priority[0] == 'nil' ? nil : priority[0]))
end
def add_label(labels)
return if labels.empty?