Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
richan-fongdasen committed Nov 9, 2021
1 parent b2a3f17 commit 921408b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Requests/PubSubEventRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Google\Cloud\PubSub\Message;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Log;
use RichanFongdasen\GCRWorker\Facade\GcrQueue;

class PubSubEventRequest extends FormRequest
Expand All @@ -26,6 +27,7 @@ public function authorize(): bool
public function getPubSubMessage(): Message
{
$requestData = $this->all();
Log::info('PubSub Message Content: '.json_encode($requestData));
$requestData['message']['data'] = base64_decode($requestData['message']['data']);

$message = new Message($requestData['message']);
Expand Down

0 comments on commit 921408b

Please sign in to comment.