added updated_at field when changing time

This commit is contained in:
Danel Kungla
2025-10-23 12:05:57 +03:00
parent b1435e8e47
commit bdd740c9ae
3 changed files with 3 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ const CartItemDelete = ({
<button
className="text-ui-fg-subtle hover:text-ui-fg-base flex cursor-pointer gap-x-1"
onClick={() => handleDelete()}
type="button"
>
{isDeleting ? <Spinner className="animate-spin" /> : <Trash />}
<span>{children}</span>

View File

@@ -70,7 +70,7 @@ const MobileCartServiceItems = ({
<TableCell />
<TableCell className="flex w-full items-center justify-end gap-4 p-0 pt-2">
<CartItemDelete id={item.id} />
<Button onClick={() => setEditingItem(item)}>
<Button type="button" onClick={() => setEditingItem(item)}>
<Trans i18nKey="common:change" />
</Button>
</TableCell>

View File

@@ -317,6 +317,7 @@ export async function updateReservationTime({
sync_user_id: newSyncUserId,
start_time: newStartTime.toString(),
location_sync_id: newLocationId,
updated_at: new Date().toISOString(),
})
.eq('id', reservationId)
.eq('user_id', user.id)