Skip to content

Commit

Permalink
Fix line breaks on discord formatter payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Zuluaga committed Jan 12, 2024
1 parent dd9cd79 commit 6234e62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def format(data)
template = "NAME, Wishing you a very happy birthday! Enjoy your special day! :birthday: :gift:"
payload = ""

data.each do |birthday|
payload += template.gsub("NAME", birthday.individual_name) + '\n '
data.each_index do |index|
payload += template.gsub("NAME", data[index].individual_name) + "\n"
end

payload
Expand Down

0 comments on commit 6234e62

Please sign in to comment.