Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Dec 17, 2024
1 parent 734bb71 commit 391e576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
12 changes: 6 additions & 6 deletions packages/cms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,20 @@ export const blog = {
}),

getPosts: async () => {
const data = await basehub().query(blog.postsQuery);
const data = await basehub.query(blog.postsQuery);

return data.blog.posts.items;
},

getLatestPost: async () => {
const data = await basehub().query(blog.latestPostQuery);
const data = await basehub.query(blog.latestPostQuery);

return data.blog.posts.items.at(0);
},

getPost: async (slug: string) => {
const query = blog.postQuery(slug);
const data = await basehub().query(query);
const data = await basehub.query(query);

return data.blog.posts.items.at(0);
},
Expand Down Expand Up @@ -134,20 +134,20 @@ export const legal = {
}),

getPosts: async () => {
const data = await basehub().query(legal.postsQuery);
const data = await basehub.query(legal.postsQuery);

return data.legalPages.items;
},

getLatestPost: async () => {
const data = await basehub().query(legal.latestPostQuery);
const data = await basehub.query(legal.latestPostQuery);

return data.legalPages.items.at(0);
},

getPost: async (slug: string) => {
const query = legal.postQuery(slug);
const data = await basehub().query(query);
const data = await basehub.query(query);

return data.legalPages.items.at(0);
},
Expand Down
22 changes: 0 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 391e576

Please sign in to comment.