Fix things
This commit is contained in:
@@ -27,7 +27,7 @@ class MessageController:
|
||||
msg = req["message"]
|
||||
payload = json.dumps({"content" : msg})
|
||||
print(payload)
|
||||
self._mqtt_service.publish(f"/chat/${self.auth_data.get_client_id()}/message", payload)
|
||||
self._mqtt_service.publish(f"/chat/${self._auth_data.get_client_id()}/message", payload)
|
||||
return jsonify({"success" : True, "message": "An error occurred"}), 500
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
Reference in New Issue
Block a user