Skip to content

Commit

Permalink
declare body
Browse files Browse the repository at this point in the history
  • Loading branch information
dispherical committed Oct 21, 2024
1 parent 76c337d commit 2386103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buttons/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module.exports = {
/**
* @param {{app: import('@slack/bolt').App}} param1
*/
render: async function ({ app }) {
var recommends = await client.getRecommend({ userId: body.user_id, cursorOptions: { n: 10 } })
render: async function ({ app, body }) {
var recommends = await client.getRecommend({ userId: body.user.id, cursorOptions: { n: 10 } })

recommends = recommends.map(rec => `- <#${rec}>`).join("\n")
return `Recyard in *beta*. Based on your recent history in the Slack, here are some channels recommended for you:
Expand Down

0 comments on commit 2386103

Please sign in to comment.