Include the workflow user ID when trying to open a DM, workflow can't send there otherwise
This commit is contained in:
parent
517d3b79a2
commit
62efd30a28
1 changed files with 2 additions and 3 deletions
5
main.py
5
main.py
|
@ -27,9 +27,8 @@ def useridToChannel(
|
|||
inputs: dict, fail: Fail, complete: Complete, logger: logging.Logger
|
||||
):
|
||||
try:
|
||||
user_id = inputs["user_id"]
|
||||
log(user_id, "DEBUG")
|
||||
channel_id = client.conversations_open(users=user_id)["channel"]["id"]
|
||||
ids = [inputs["user_id"], inputs["workflow_id"]]
|
||||
channel_id = client.conversations_open(users=ids)["channel"]["id"]
|
||||
complete({"channel_id": channel_id})
|
||||
except:
|
||||
log(format_exc(), "ERROR")
|
||||
|
|
Loading…
Reference in a new issue