Browse Source

finally fix notify new locations

pull/5/head
Aaron Parecki 7 years ago
parent
commit
9ba6cb1200
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      compass/app/Jobs/NotifyOfNewLocations.php

+ 2
- 1
compass/app/Jobs/NotifyOfNewLocations.php View File

@ -1,6 +1,7 @@
<?php <?php
namespace App\Jobs; namespace App\Jobs;
use DB;
use Log; use Log;
use App\Jobs\Job; use App\Jobs\Job;
use Illuminate\Contracts\Bus\SelfHandling; use Illuminate\Contracts\Bus\SelfHandling;
@ -22,7 +23,7 @@ class NotifyOfNewLocations extends Job implements SelfHandling, ShouldQueue
$ch = curl_init($url); $ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([ curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'url' => env('BASE_URL').'api/last?token='.$db->token.'&geocode=1'
'url' => env('BASE_URL').'api/last?token='.$db->read_token.'&geocode=1'
])); ]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch); curl_exec($ch);

Loading…
Cancel
Save