Browse Source

fix

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

+ 4
- 1
app/Http/Controllers/DashboardController.php View File

@ -88,7 +88,10 @@ class DashboardController extends Controller
$tweet = Tweet::where('id', $request->input('tweet_id'))->first(); $tweet = Tweet::where('id', $request->input('tweet_id'))->first();
if($tweet) { if($tweet) {
// Calculate the previous mission status before saving this tweet // Calculate the previous mission status before saving this tweet
$previousMissionStatus = $tweet->mission->complete($tweet->team);
if($tweet->team)
$previousMissionStatus = $tweet->mission->complete($tweet->team);
else
$previousMissionStatus = false;
$tweet->m1_transit_line_id = null; $tweet->m1_transit_line_id = null;
$tweet->m1_non_trimet = null; $tweet->m1_non_trimet = null;

Loading…
Cancel
Save