Forward to correct recipient #121
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class portal_api_iot(plugins.ConfServerApp):
|
||||||
try:
|
try:
|
||||||
json_body = json.loads(await request.text())
|
json_body = json.loads(await request.text())
|
||||||
|
|
||||||
randomid = "".join(random.sample(string.ascii_letters, 6))
|
randomid = "".join(random.sample(string.ascii_letters, 4))
|
||||||
did = ""
|
did = ""
|
||||||
if "toId" in json_body: # Its a command
|
if "toId" in json_body: # Its a command
|
||||||
did = json_body["toId"]
|
did = json_body["toId"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue