fix(server): fix pages/update

This commit is contained in:
syuilo 2023-01-04 17:41:09 +09:00
parent 5906de5ca0
commit 1ed078d7f9

View File

@ -111,7 +111,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
updatedAt: new Date(), updatedAt: new Date(),
title: ps.title, title: ps.title,
name: ps.name === undefined ? page.name : ps.name, name: ps.name === undefined ? page.name : ps.name,
summary: ps.name === undefined ? page.summary : ps.summary, summary: ps.summary === undefined ? page.summary : ps.summary,
content: ps.content, content: ps.content,
variables: ps.variables, variables: ps.variables,
script: ps.script, script: ps.script,