fix: edit webhook time (#18549)

This commit is contained in:
Udit Takkar authored and GitHub committed 2025-01-17 08:56:50 +00:00
1 parent 08e58851e7
commit ea827ebbc6
2 files changed
+13 -11

No files matched your search

@@ -40,7 +40,11 @@ export const editHandler = async ({ input, ctx }: EditOptions) => {
where: {
id,
},
data,
data: {
...data,
time: data.time ?? null,
timeUnit: data.timeUnit ?? null,
},
});
if (data.active) {