Skip to content

Commit

Permalink
query the actual linkedinPost field
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlyton committed Jan 15, 2024
1 parent 1275020 commit 9edce1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/data/sanityClient.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function getAllPosts() {
}

export function getPostsFeed() {
return `*[_type == "post"]{_id, title, description, mainImage, tags[]->{title}, "slug": slug.current, author->{...}, publishedAt}| order(publishedAt desc)`;
return `*[_type == "post"]{_id, title, description, mainImage, tags[]->{title}, "slug": slug.current, linkedinPost, author->{...}, publishedAt}| order(publishedAt desc)`;
}

export function getPostBySlug(slug: string) {
Expand Down

0 comments on commit 9edce1c

Please sign in to comment.