fix: fix status page set monitor list in create action not work problem
This commit is contained in:
parent
551f86b8e3
commit
e24d82224c
@ -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"
|
||||||
|
@ -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,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user