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

Function getToolClaimedBy

packages/shared/src/graphql/tools.ts:128–135  ·  view source on GitHub ↗
(
  slug: string,
)

Source from the content-addressed store, hash-verified

126// Fetched separately from DATASET_TOOL_QUERY so a not-yet-deployed API
127// (missing this field) can't 500 the whole page during the rollout window.
128export const getToolClaimedBy = async (
129 slug: string,
130): Promise<ToolClaimedBy | null> => {
131 const result = await gqlClient.request<{
132 datasetTool: { claimedBy: ToolClaimedBy | null };
133 }>(TOOL_CLAIMED_BY_QUERY, { slug });
134 return result.datasetTool.claimedBy;
135};
136
137export interface ToolFact {
138 key: string;

Callers 1

getStaticPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected