diff --git a/apps/docs/content/docs/contents.mdx b/apps/docs/content/docs/contents.mdx index c990f48..d420b9e 100644 --- a/apps/docs/content/docs/contents.mdx +++ b/apps/docs/content/docs/contents.mdx @@ -30,9 +30,9 @@ async function getContents() { import { postivaClient } from "@/libs/postiva"; import { GetContentsType, ContentStatusEnum } from '@postiva/client' -async function getContentsWithQuery({ query, type=ContentStatusEnum.published, category }: GetContentsType) { +async function getContentsWithQuery({ query, type=ContentStatusEnum.published, categories }: GetContentsType) { try { - const contents = await client.getContents({ query, type, category }); + const contents = await client.getContents({ query, type, categories }); console.log(contents); } catch (error) { console.error('Error fetching contents:', error); diff --git a/apps/docs/package.json b/apps/docs/package.json index 2f40fce..75d7fa6 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@postiva/client": "0.0.27", + "@postiva/client": "workspace:*", "fumadocs-core": "^11.0.4", "fumadocs-docgen": "^1.0.1", "fumadocs-mdx": "^8.2.13", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c83b39f..4ecf905 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: apps/docs: dependencies: '@postiva/client': - specifier: 0.0.27 - version: 0.0.27 + specifier: workspace:* + version: link:../../packages/library fumadocs-core: specifier: ^11.0.4 version: 11.0.4(@types/react@18.3.1)(next@14.0.4)(react-dom@18.3.1)(react@18.3.1) @@ -1324,10 +1324,6 @@ packages: requiresBuild: true optional: true - /@postiva/client@0.0.27: - resolution: {integrity: sha512-o/wGWjnEHD30pBDmpXgrYuRaCH+Wtrqu8wxSS3SRM1HL9SzPe2zQedjLwfkt/XrA5jPHk85by/G/qSuHoE++mw==} - dev: false - /@radix-ui/number@1.0.1: resolution: {integrity: sha512-T5gIdVO2mmPW3NNhjNgEP3cqMXjXL9UbO0BzWcXfvdBs+BohbQxvd/K5hSVKmn9/lbTdsQVKbUcP5WLCwvUbBg==} dependencies: