고정 페이지 HTML 문서 모드 추가 v1.5.1
This commit is contained in:
@@ -62,6 +62,7 @@ const mapPageRow = (row) => ({
|
||||
title: row.title,
|
||||
slug: row.slug,
|
||||
content: row.content,
|
||||
renderMode: row.render_mode || 'markdown',
|
||||
featuredImage: row.featured_image,
|
||||
createdAt: row.created_at.toISOString(),
|
||||
updatedAt: row.updated_at.toISOString()
|
||||
@@ -538,12 +539,14 @@ export const createAdminPage = async (input) => {
|
||||
title,
|
||||
slug,
|
||||
content,
|
||||
render_mode,
|
||||
featured_image
|
||||
)
|
||||
VALUES (
|
||||
${input.title},
|
||||
${input.slug},
|
||||
${input.content},
|
||||
${input.renderMode},
|
||||
${input.featuredImage}
|
||||
)
|
||||
RETURNING *
|
||||
@@ -571,6 +574,7 @@ export const updateAdminPage = async (id, input) => {
|
||||
title = ${input.title},
|
||||
slug = ${input.slug},
|
||||
content = ${input.content},
|
||||
render_mode = ${input.renderMode},
|
||||
featured_image = ${input.featuredImage},
|
||||
updated_at = now()
|
||||
WHERE id = ${id}
|
||||
|
||||
Reference in New Issue
Block a user