-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix minor bug redelivering to multiple
When passing multiple destinations as a CSV [1], we're expecting to strip these values down to an Array of two stripped ID numbers [2]. This wasn't happening as the `each` call wasn't returning the stripped values. As such, we're left with some invalid ID numbers [3] that don't get found later on. This fixes this issue by using `map`, which returns the stripped values. I've also added some specs. They're not the totally complete, but they do fail prior to using `map` and pass afterwards, so good enough for this specific issue. [1] e.g. `"105, 106"` [2] i.e. `["105", "106"]` [3] i.e. `["105", " 106"]` – note the preceding space
- Loading branch information
1 parent
f19736a
commit 0be1946
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters