Skip to content

Commit

Permalink
Prioritize subject over TopicArn
Browse files Browse the repository at this point in the history
So we can create a "default" handler for the jobs (mostly to throw away the jobs) using the topicArn in the config
  • Loading branch information
tadhanfivejack authored Jan 23, 2019
1 parent b9146e5 commit aed90ac
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 aed90ac

Please sign in to comment.