Browse Source

fix

master
Aaron Parecki 7 years ago
parent
commit
fd68b506f4
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/Listeners/TweetAcceptedListener.php

+ 3
- 0
app/Listeners/TweetAcceptedListener.php View File

@ -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) {

Loading…
Cancel
Save