MCPcopy
hub / github.com/HisMax/RedInk / checkHistoryExists

Function checkHistoryExists

frontend/src/api/history.ts:107–122  ·  view source on GitHub ↗
(recordId: string)

Source from the content-addressed store, hash-verified

105}
106
107export async function checkHistoryExists(recordId: string): Promise<boolean> {
108 try {
109 const response = await axios.get(
110 `${API_BASE_URL}/history/${recordId}/exists`,
111 {
112 timeout: 5000
113 }
114 )
115 return response.data.exists === true
116 } catch (error: any) {
117 if (axios.isAxiosError(error)) {
118 return false
119 }
120 return false
121 }
122}
123
124export async function deleteHistory(recordId: string): Promise<{
125 success: boolean

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected