From 21623975757de6d810a274c9ad13de78ef4b9c1c Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Tue, 10 Jun 2025 18:55:46 -0400 Subject: [PATCH] Add updatedAt timestamp to UpdateChoreAssignee and UpdateDueDate functions --- src/utils/Fetcher.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/Fetcher.jsx b/src/utils/Fetcher.jsx index d9594c4..bf6c92f 100644 --- a/src/utils/Fetcher.jsx +++ b/src/utils/Fetcher.jsx @@ -146,7 +146,10 @@ const UpdateChoreAssignee = (id, assignee) => { return Fetch(`/chores/${id}/assignee`, { method: 'PUT', headers: HEADERS(), - body: JSON.stringify({ assignee: Number(assignee) }), + body: JSON.stringify({ + assignee: Number(assignee), + updatedAt: new Date().toISOString(), + }), }) } @@ -499,6 +502,7 @@ const UpdateDueDate = (id, dueDate) => { }, body: JSON.stringify({ dueDate: dueDate ? new Date(dueDate).toISOString() : null, + updatedAt: new Date().toISOString(), }), }) }