Skip to content

Commit

Permalink
pass the provider_visibility in Slack activities
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Jan 14, 2025
1 parent ad3bf24 commit 9ff2ef5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connectors/src/connectors/slack/lib/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type SlackChannelType = {
slackId: string;
permission: ConnectorPermission;
agentConfigurationId: string | null;
private: boolean;
};

export async function updateSlackChannelInConnectorsDb({
Expand Down Expand Up @@ -60,6 +61,7 @@ export async function updateSlackChannelInConnectorsDb({
slackId: channel.slackChannelId,
permission: channel.permission,
agentConfigurationId: channel.agentConfigurationId,
private: channel.private,
};
}

Expand Down
1 change: 1 addition & 0 deletions connectors/src/connectors/slack/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ export async function syncChannel(
parentId: null,
parents: [slackChannelInternalIdFromSlackChannelId(channelId)],
mimeType: MIME_TYPES.SLACK.CHANNEL,
providerVisibility: channel.private ? "private" : "public",
});
}

Expand Down

0 comments on commit 9ff2ef5

Please sign in to comment.