Skip to content

Commit

Permalink
fix: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
duyet committed Nov 25, 2024
1 parent 6e89fb2 commit d3afc9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/[host]/query/[query_id]/query-detail-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,6 @@ function bindingTableLink(tables: Array<string>): React.ReactNode[] {
}

function bindingReference(value: Array<string>): React.ReactNode[] {
console.log('used_functionsused_functionsused_functions', value)

const getSearchLink = (item: string) => {
const searchParams = new URLSearchParams({
q: `repo:ClickHouse/ClickHouse path:docs/en/sql-reference path:*.md "# ${item}"`,
Expand Down
7 changes: 3 additions & 4 deletions lib/clickhouse-cache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { unstable_cache } from 'next/cache'
import { unstable_cache as cache } from 'next/cache'
import { fetchData } from './clickhouse'

export const CLICKHOUSE_CACHE_TAG = 'clickhouse_results'
Expand All @@ -8,9 +8,8 @@ const NEXT_QUERY_CACHE_TTL = parseInt(
10 // Specify radix parameter
) // 60 minutes by default

export const fetchDataWithCache = unstable_cache(
(param: (typeof fetchData.arguments)[0], id?: number | string) =>
fetchData(param, id),
export const fetchDataWithCache = cache(
(param: (typeof fetchData.arguments)[0]) => fetchData(param),
undefined,
{
tags: [CLICKHOUSE_CACHE_TAG],
Expand Down

0 comments on commit d3afc9a

Please sign in to comment.