diff --git a/sections/30-recent.js b/sections/30-recent.js index 002e793..2106c95 100644 --- a/sections/30-recent.js +++ b/sections/30-recent.js @@ -33,7 +33,7 @@ module.exports = { }, {}); const sortedChannels = Object.keys(channelMap) .sort((a, b) => channelMap[b] - channelMap[a]) - .slice(0, 15); + .slice(0, 10); let text = await Promise.all( sortedChannels.map(async (channel) => { const channelRecord = await prisma.channel.findFirst({ diff --git a/utils/pull.js b/utils/pull.js index 1190b02..2da200c 100644 --- a/utils/pull.js +++ b/utils/pull.js @@ -26,16 +26,7 @@ module.exports = async function ({ app, client, prisma }) { await app.client.chat.update({ channel: process.env.SLACK_CHANNEL, ts: await client.get(`${process.env.INSTANCE_ID || "production"}.${section.id}.messageId`), - text: `*${section.title}*\n\n${rend}\n\n════════════════════════════════════\n`, - blocks: [ - { - type: "section", - text: { - type: "mrkdwn", - text: `*${section.title}*\n\n${rend}\n\n════════════════════════════════════\n`, - }, - } - ] + text: `*${section.title}*\n\n${rend}\n\n════════════════════════════════════\n` }); }