]> git.cworth.org Git - turbot/commit
Drop the hunt_channel_id from the metadata passed in the puzzle modal
authorCarl Worth <cworth@cworth.org>
Thu, 22 Oct 2020 10:36:51 +0000 (03:36 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 22 Oct 2020 10:59:39 +0000 (03:59 -0700)
commit94aae1f0a40594910ee5661b417e22ab7936f2b6
tree60424ad2cf3b61ccac98280f4a29b955e02bf243
parentf7e44810aee7c646f8cc5fc11d244ff8f739a84f
Drop the hunt_channel_id from the metadata passed in the puzzle modal

We've now got another handoff, from the puzzle modal's submission
handler to a separate channel_created event before the hunt's
channel_id is needed. And by then we've lost the context of this
private_metadata, (so the current code scans through the database
'hunts' table to find the ID). Given all that, we can drop this unused
field from the metadata.
turbot/interaction.py