refactor: remove additional dead exports and unused actions
Remove buildFontUrl, measureText, uncached, invalidateCache, fetchJsonWithFlareSolver, upsertPermission, deletePermission, bulkImportPermissions, clearAllPermissions, bulkDeletePermissions, bulkDeletePhotos, userReplyTicket, closeTicketByUser. Update staff-smoke-contract test for bulkDeletePhotos removal.
This commit is contained in:
1 parent
24bf8eabb9
commit
6a67fb6e83
10 files changed
+3
-187
No files matched your search
@@ -39,15 +39,3 @@ export async function fetchWithFlareSolver(
|
||||
|
||||
return data.solution.response;
|
||||
}
|
||||
|
||||
export async function fetchJsonWithFlareSolver<T = unknown>(
|
||||
url: string,
|
||||
timeout = 30000,
|
||||
): Promise<T> {
|
||||
const body = await fetchWithFlareSolver(url, timeout);
|
||||
try {
|
||||
return JSON.parse(body) as T;
|
||||
} catch {
|
||||
throw new Error(`flare-solver: could not parse JSON from ${url}`);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user