Skip to content

Commit dbb5079

Browse files
authored
fix(slack): fail metadata extraction when slack api unresponsive (#292)
1 parent 86df2f6 commit dbb5079

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/slack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@blink-sdk/slack",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"author": {
55
"name": "Coder",
66
"email": "support@blink.so",

packages/slack/src/message.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,7 @@ export const extractMessagesMetadata = async <
582582
for (const channelId of channelIds) {
583583
channelPromises[channelId] = client.conversations
584584
.info({ channel: channelId })
585-
.then((res) => res.channel)
586-
.catch(() => undefined);
585+
.then((res) => res.channel);
587586
}
588587

589588
// Fetch team info
@@ -594,8 +593,7 @@ export const extractMessagesMetadata = async <
594593
for (const teamId of teamIds) {
595594
teamPromises[teamId] = client.team
596595
.info({ team: teamId })
597-
.then((res) => res.team)
598-
.catch(() => undefined);
596+
.then((res) => res.team);
599597
}
600598

601599
// Fetch user info
@@ -606,8 +604,7 @@ export const extractMessagesMetadata = async <
606604
for (const userId of userIds) {
607605
userPromises[userId] = client.users
608606
.info({ user: userId })
609-
.then((res) => res.user)
610-
.catch(() => undefined);
607+
.then((res) => res.user);
611608
}
612609

613610
// Fetch files

0 commit comments

Comments
 (0)