Skip to content

Commit

Permalink
Fix MS Teams additional datum output format (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
armiiller authored Dec 23, 2024
1 parent 3366d6c commit e1e07d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ def _blocks
text: _alert.description&.try(:to_plain_text),
wrap: true,
separator: true,
color: "Light"
maxLines: 24
},
{
type: "FactSet",
facts: _alert.additional_data&.map { |ad| {title: ad["label"], value: ad["value"]} } || [],
facts: _alert.additional_data&.map { |ad| {title: ad["label"], value: Array(ad["value"]).join(", ")} } || [],
spacing: "Medium",
separator: true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Channel::MicrosoftTeams::V4Test < ActiveSupport::TestCase
text: @alert.description&.try(:to_plain_text),
wrap: true,
separator: true,
color: "Light"
maxLines: 24
},
{
type: "FactSet",
Expand Down

0 comments on commit e1e07d6

Please sign in to comment.