fix: fix status page set monitor list in create action not work problem

This commit is contained in:
moonrailgun 2024-01-13 01:21:09 +08:00
parent 551f86b8e3
commit e24d82224c
2 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,6 @@ export const MonitorStatusPageEditForm: React.FC<MonitorStatusPageEditFormProps>
layout="vertical"
initialValues={props.initialValues}
onFinish={props.onFinish}
onValuesChange={console.log}
>
<Form.Item
label="Title"

View File

@ -578,7 +578,7 @@ export const monitorRouter = router({
)
.output(MonitorStatusPageModelSchema)
.mutation(async ({ input }) => {
const { workspaceId, slug, title } = input;
const { workspaceId, slug, title, description, monitorList } = input;
const existSlugCount = await prisma.monitorStatusPage.count({
where: {
@ -595,6 +595,8 @@ export const monitorRouter = router({
workspaceId,
slug,
title,
description,
monitorList,
},
});