diff --git a/bun.lock b/bun.lock index 518d58a..5b6c73c 100644 --- a/bun.lock +++ b/bun.lock @@ -388,7 +388,7 @@ }, "packages/slack": { "name": "@blink-sdk/slack", - "version": "1.2.0", + "version": "1.2.1", "devDependencies": { "@ai-sdk/provider": "^2.0.0", "@slack/types": "^2.17.0", diff --git a/packages/slack/package.json b/packages/slack/package.json index eec216e..c2372d3 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -1,6 +1,6 @@ { "name": "@blink-sdk/slack", - "version": "1.2.0", + "version": "1.2.1", "author": { "name": "Coder", "email": "support@blink.so", diff --git a/packages/slack/src/message.ts b/packages/slack/src/message.ts index d9d500f..543be83 100644 --- a/packages/slack/src/message.ts +++ b/packages/slack/src/message.ts @@ -582,8 +582,7 @@ export const extractMessagesMetadata = async < for (const channelId of channelIds) { channelPromises[channelId] = client.conversations .info({ channel: channelId }) - .then((res) => res.channel) - .catch(() => undefined); + .then((res) => res.channel); } // Fetch team info @@ -594,8 +593,7 @@ export const extractMessagesMetadata = async < for (const teamId of teamIds) { teamPromises[teamId] = client.team .info({ team: teamId }) - .then((res) => res.team) - .catch(() => undefined); + .then((res) => res.team); } // Fetch user info @@ -606,8 +604,7 @@ export const extractMessagesMetadata = async < for (const userId of userIds) { userPromises[userId] = client.users .info({ user: userId }) - .then((res) => res.user) - .catch(() => undefined); + .then((res) => res.user); } // Fetch files