We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f05e58a commit e0c870fCopy full SHA for e0c870f
packages/api/src/routers/api/dashboards.ts
@@ -1,7 +1,4 @@
1
-import {
2
- DashboardSchema,
3
- DashboardWithoutIdSchema,
4
-} from '@hyperdx/common-utils/dist/types';
+import { DashboardWithoutIdSchema } from '@hyperdx/common-utils/dist/types';
5
import express from 'express';
6
import { groupBy } from 'lodash';
7
import _ from 'lodash';
@@ -59,7 +56,7 @@ router.patch(
59
56
params: z.object({
60
57
id: objectIdSchema,
61
58
}),
62
- body: DashboardSchema.partial(),
+ body: DashboardWithoutIdSchema.partial(),
63
64
async (req, res, next) => {
65
try {
0 commit comments