Skip to content

Commit

Permalink
Merge pull request #12 from tadhanfivejack/patch-1
Browse files Browse the repository at this point in the history
Prioritize subject over TopicArn
  • Loading branch information
jayhof authored Jan 23, 2019
2 parents b9146e5 + aed90ac commit f5ef66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Queue/Jobs/SqsSnsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function resolveSnsSubscription(array $job, array $routes)
$commandName = null;

// available parameters to route your jobs by
$possibleRouteParams = ['TopicArn', 'Subject'];
$possibleRouteParams = ['Subject', 'TopicArn'];

foreach ($possibleRouteParams as $param) {
if (isset($body[$param]) && array_key_exists($body[$param], $routes)) {
Expand Down

0 comments on commit f5ef66b

Please sign in to comment.