Browse Source

only push tweets to dashboard if a team is assigned

master
Aaron Parecki 6 years ago
parent
commit
9c68bad7d9
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/Http/Controllers/TwitterController.php

+ 1
- 1
app/Http/Controllers/TwitterController.php View File

@ -59,7 +59,7 @@ class TwitterController extends BaseController
$tweet->tweet_date = date('Y-m-d H:i:s', strtotime($data['created_at']));
$tweet->save();
if($tweet->mission_id) {
if($tweet->mission_id && $tweet->team_id) {
event(new NewTweetEvent($tweet));
}

Loading…
Cancel
Save