added updated_at field when changing time
This commit is contained in:
@@ -38,6 +38,7 @@ const CartItemDelete = ({
|
|||||||
<button
|
<button
|
||||||
className="text-ui-fg-subtle hover:text-ui-fg-base flex cursor-pointer gap-x-1"
|
className="text-ui-fg-subtle hover:text-ui-fg-base flex cursor-pointer gap-x-1"
|
||||||
onClick={() => handleDelete()}
|
onClick={() => handleDelete()}
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
{isDeleting ? <Spinner className="animate-spin" /> : <Trash />}
|
{isDeleting ? <Spinner className="animate-spin" /> : <Trash />}
|
||||||
<span>{children}</span>
|
<span>{children}</span>
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ const MobileCartServiceItems = ({
|
|||||||
<TableCell />
|
<TableCell />
|
||||||
<TableCell className="flex w-full items-center justify-end gap-4 p-0 pt-2">
|
<TableCell className="flex w-full items-center justify-end gap-4 p-0 pt-2">
|
||||||
<CartItemDelete id={item.id} />
|
<CartItemDelete id={item.id} />
|
||||||
<Button onClick={() => setEditingItem(item)}>
|
<Button type="button" onClick={() => setEditingItem(item)}>
|
||||||
<Trans i18nKey="common:change" />
|
<Trans i18nKey="common:change" />
|
||||||
</Button>
|
</Button>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
|||||||
@@ -317,6 +317,7 @@ export async function updateReservationTime({
|
|||||||
sync_user_id: newSyncUserId,
|
sync_user_id: newSyncUserId,
|
||||||
start_time: newStartTime.toString(),
|
start_time: newStartTime.toString(),
|
||||||
location_sync_id: newLocationId,
|
location_sync_id: newLocationId,
|
||||||
|
updated_at: new Date().toISOString(),
|
||||||
})
|
})
|
||||||
.eq('id', reservationId)
|
.eq('id', reservationId)
|
||||||
.eq('user_id', user.id)
|
.eq('user_id', user.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user