Skip to content

Commit

Permalink
Fix: deleting a Slack managed DS when the token is expired (#2670)
Browse files Browse the repository at this point in the history
Co-authored-by: ARIC LASRY <[email protected]>
  • Loading branch information
lasryaric and ARIC LASRY authored Nov 24, 2023
1 parent f6097fb commit 62ca98e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion connectors/src/connectors/slack/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ export async function cleanupSlackConnector(

if (slackError.code === ErrorCode.PlatformError) {
const platformError = e as WebAPIPlatformError;
if (platformError.data.error === "account_inactive") {
if (
["account_inactive", "invalid_auth"].includes(
platformError.data.error
)
) {
shouldThrow = false;
logger.info(
{
Expand Down

0 comments on commit 62ca98e

Please sign in to comment.