added updated_at field when changing time
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user