게시물 OG 이미지 설정 추가
This commit is contained in:
@@ -25,6 +25,7 @@ const mapPostRow = (row) => ({
|
||||
seoDescription: row.seo_description || '',
|
||||
canonicalUrl: row.canonical_url || '',
|
||||
noindex: Boolean(row.noindex),
|
||||
ogImage: row.og_image || null,
|
||||
status: row.status,
|
||||
publishedAt: row.published_at ? row.published_at.toISOString() : null,
|
||||
createdAt: row.created_at.toISOString(),
|
||||
@@ -249,6 +250,7 @@ export const createAdminPost = async (input) => {
|
||||
seo_description,
|
||||
canonical_url,
|
||||
noindex,
|
||||
og_image,
|
||||
status,
|
||||
published_at
|
||||
)
|
||||
@@ -262,6 +264,7 @@ export const createAdminPost = async (input) => {
|
||||
${input.seoDescription},
|
||||
${input.canonicalUrl},
|
||||
${input.noindex},
|
||||
${input.ogImage},
|
||||
${input.status},
|
||||
${input.publishedAt}
|
||||
)
|
||||
@@ -302,6 +305,7 @@ export const updateAdminPost = async (id, input) => {
|
||||
seo_description = ${input.seoDescription},
|
||||
canonical_url = ${input.canonicalUrl},
|
||||
noindex = ${input.noindex},
|
||||
og_image = ${input.ogImage},
|
||||
status = ${input.status},
|
||||
published_at = ${input.publishedAt},
|
||||
updated_at = now()
|
||||
|
||||
Reference in New Issue
Block a user