From f7581ebd519a95233921a43dca1340171853e5bc Mon Sep 17 00:00:00 2001 From: Jack Clackett Date: Mon, 4 Nov 2024 15:10:11 +0100 Subject: [PATCH] fix updates --- packages/api/src/router/task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/router/task.ts b/packages/api/src/router/task.ts index b6b5b78a..e91d65fa 100644 --- a/packages/api/src/router/task.ts +++ b/packages/api/src/router/task.ts @@ -217,7 +217,7 @@ export const taskRouter = createTRPCRouter({ } if ( (data.reminder && existingTask.reminder !== data.reminder) || - (data.startTime && data.startTime !== existingTask.startTime) + (data.reminder && data.startTime && data.startTime !== existingTask.startTime) ) { if (task.upstashMessageId) await deleteTaskReminder(task.upstashMessageId) const upstashMessageId = await createTaskReminder(task)