This commit is contained in:
2018-11-12 23:36:15 -06:00
parent 989cfecc6b
commit 1ad9edd170
2 changed files with 7 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ class FleetsController extends Controller
//Check for the fleet in the database
$check = DB::table('Fleets')->where('fleet', $fleetUri)->first();
//If we do not find the fleet, let's create it.
if($check !== null) {
if($check === null) {
$current = Carbon::now();
//If we are between 00:00 and 05:00, we want to set the end time for 0500
if($current->hour > 0 && $current->hour < 5) {