|
|
@ -32,6 +32,9 @@ class TweetAcceptedListener implements ShouldQueue |
|
|
|
{ |
|
|
|
$tweet = $event->tweet; |
|
|
|
|
|
|
|
if(!$tweet->team || !$tweet->mission) |
|
|
|
return; |
|
|
|
|
|
|
|
// Tweet out when missions are completed
|
|
|
|
$newMissionStatus = $tweet->mission->complete($tweet->team); |
|
|
|
if($event->previousMissionStatus == false && $newMissionStatus == true) { |
|
|
|