Skip to content

Commit a34f0ab

Browse files
committed
Fix build
1 parent b481d5c commit a34f0ab

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apps/page/pages/api/latest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getPageUrl, getPostUrl } from "../../lib/url";
77

88
type IPostWithUrl = Pick<
99
IPost,
10-
"id" | "title" | "content" | "type" | "created_at"
10+
"id" | "title" | "content" | "tags" | "created_at"
1111
> & { url: string };
1212

1313
async function handler(
@@ -32,7 +32,7 @@ async function handler(
3232
// fetch latest post for page
3333
const { data, error: postsError } = await supabaseAdmin
3434
.from("posts")
35-
.select("id,title,content,type,publication_date,updated_at,created_at")
35+
.select("id,title,content,tags,publication_date,updated_at,created_at")
3636
.eq("page_id", String(page?.id))
3737
.eq("status", "published")
3838
.order("publication_date", { ascending: false })

apps/page/pages/api/pinned.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getPageUrl, getPostUrl } from "../../lib/url";
77

88
type IPostWithUrl = Pick<
99
IPost,
10-
"id" | "title" | "content" | "type" | "created_at"
10+
"id" | "title" | "content" | "tags" | "created_at"
1111
> & { url: string };
1212

1313
async function handler(
@@ -32,7 +32,7 @@ async function handler(
3232
// fetch pinned post for page
3333
const { data, error: postsError } = await supabaseAdmin
3434
.from("posts")
35-
.select("id,title,content,type,publication_date,updated_at,created_at")
35+
.select("id,title,content,tags,publication_date,updated_at,created_at")
3636
.eq("page_id", String(page?.id))
3737
.eq("status", "published")
3838
.eq("id", String(settings?.pinned_post_id))

apps/web/pages/api/integrations/zapier/trigger-new-post.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
export default async function handler(
1212
req: NextApiRequest,
1313
res: NextApiResponse<
14-
| Pick<IPost, "id" | "title" | "content" | "type" | "created_at">[]
14+
| Pick<IPost, "id" | "title" | "content" | "tags" | "created_at">[]
1515
| null
1616
| IErrorResponse
1717
>
@@ -38,7 +38,7 @@ export default async function handler(
3838

3939
const { data: posts } = await supabaseAdmin
4040
.from("posts")
41-
.select("id,title,content,type,created_at")
41+
.select("id,title,content,tags,created_at")
4242
.eq("page_id", String(pageDetails.id))
4343
.eq("status", String(status))
4444
.order("created_at", { ascending: false })

0 commit comments

Comments
 (0)