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" layout="vertical"
initialValues={props.initialValues} initialValues={props.initialValues}
onFinish={props.onFinish} onFinish={props.onFinish}
onValuesChange={console.log}
> >
<Form.Item <Form.Item
label="Title" label="Title"

View File

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