Skip to content

Commit

Permalink
remove block kit
Browse files Browse the repository at this point in the history
  • Loading branch information
dispherical committed Oct 31, 2024
1 parent 6ad05a4 commit 5d54a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion sections/30-recent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
11 changes: 1 addition & 10 deletions utils/pull.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
});
}

Expand Down

0 comments on commit 5d54a7d

Please sign in to comment.