Skip to content

Open-source status page, incident response and uptime monitoring

📚 fix docs (#457)

Thibault Le Ouay6d567f3eafca
diff --git a/apps/docs/api-reference/incident_update/post-incident_update.mdx b/apps/docs/api-reference/incident_update/post-incident_update.mdx
new file mode 100644
index 000000000..bedc784b8
--- /dev/null
+++ b/apps/docs/api-reference/incident_update/post-incident_update.mdx
@@ -0,0 +1,4 @@
+---
+title: Create Incident Update
+openapi: post /incident_update/
+---
diff --git a/apps/server/src/v1/incidentUpdate.ts b/apps/server/src/v1/incidentUpdate.ts
index 1fc2f61bb..07ebace54 100644
--- a/apps/server/src/v1/incidentUpdate.ts
+++ b/apps/server/src/v1/incidentUpdate.ts
@@ -32,7 +32,7 @@ const incidentUpdateSchema = z.object({
}),
id: z.coerce.string().openapi({ description: "The id of the update" }),
date: z
- .preprocess((val) => new Date(String(val)).toISOString(), z.string())
+ .preprocess((val) => String(val), z.string())
.openapi({
description: "The date of the update in ISO 8601 format",
}),