MCPcopy Create free account
hub / github.com/dailydotdev/apps / queryShortUrl

Function queryShortUrl

packages/shared/src/hooks/utils/useGetShortUrl.ts:54–57  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

52 );
53
54 const queryShortUrl = async (url: string) => {
55 const res = await gqlClient.request(GET_SHORT_URL_QUERY, { url });
56 return res.getShortUrl;
57 };
58
59 const getShortUrl = useCallback(
60 async (url: string, cid?: ReferralCampaignKey) => {

Callers 1

useGetShortUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected