Skip to content

Commit

Permalink
fix(gallagher): short name is limited to 16 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 20, 2023
1 parent 0732238 commit 77fefdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gallagher/rest_api.cr
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ class Gallagher::RestAPI < PlaceOS::Driver
division_href : String? = nil
)
short_name ||= "#{first_name} #{last_name}"
short_name = short_name[0..15]

payload = Cardholder.new(
first_name, last_name, short_name, description, authorised,
Expand Down

0 comments on commit 77fefdd

Please sign in to comment.