Skip to content

Commit

Permalink
use new endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
scazan committed Nov 23, 2023
1 parent ce7d66f commit 3401443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/slack/src/actions/queryLens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async function getRelatedSources(params: {
const getResolvedSnippet = async (
source: SearchAIAnswerSource & { type: 'snippet' | 'capture' }
): Promise<RelatedSource> => {
const snippetRequest = await client.orgs.getCapture(organization, source.captureId);
const snippetRequest = await client.orgs.getSnippet(organization, source.captureId);
const snippet = snippetRequest.data;

const sourceUrl = snippet.urls.app;
Expand Down

0 comments on commit 3401443

Please sign in to comment.