Skip to content

Commit f5ef66b

Browse files
authored
Merge pull request #12 from tadhanfivejack/patch-1
Prioritize subject over TopicArn
2 parents b9146e5 + aed90ac commit f5ef66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Queue/Jobs/SqsSnsJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function resolveSnsSubscription(array $job, array $routes)
4747
$commandName = null;
4848

4949
// available parameters to route your jobs by
50-
$possibleRouteParams = ['TopicArn', 'Subject'];
50+
$possibleRouteParams = ['Subject', 'TopicArn'];
5151

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

0 commit comments

Comments
 (0)