From d58ee553d76c900879958d68babc6a52e032d684 Mon Sep 17 00:00:00 2001 From: Chris Bellas Date: Fri, 16 Apr 2021 12:20:34 +0300 Subject: [PATCH] Temporary removed user fetching for ADT --- api/app/Http/Controllers/V1/Partners/AdtController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/app/Http/Controllers/V1/Partners/AdtController.php b/api/app/Http/Controllers/V1/Partners/AdtController.php index 2b691de..b171d25 100644 --- a/api/app/Http/Controllers/V1/Partners/AdtController.php +++ b/api/app/Http/Controllers/V1/Partners/AdtController.php @@ -34,7 +34,8 @@ class AdtController extends Controller } // publish to MQTT Broker - Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), $request->user()->id); + // Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), $request->user()->id); + Mqtt::ConnectAndPublish('adt/event', json_encode($mqttEvents), 1); DB::table('adt')->insert($dbEvents); return response()->json(['success' => 'success'], 200); -- 2.2.2