feat: cli command to clean up outdated or stale booking draft records
This commit is contained in:
@@ -75,6 +75,7 @@ class DraftInspectCommand extends Command
|
||||
$draft->getId(),
|
||||
$draft->getBookingId(),
|
||||
$draft->getUser()->getEmail(),
|
||||
$draft->getTravelDate()->format('Y-m-d'),
|
||||
$draft->getCreatedAt()->format('Y-m-d H:i:s'),
|
||||
$draft->getUpdatedAt()->format('Y-m-d H:i:s'),
|
||||
$this->getAgeDays($draft->getUpdatedAt()),
|
||||
@@ -83,7 +84,7 @@ class DraftInspectCommand extends Command
|
||||
}
|
||||
|
||||
$io->table(
|
||||
['ID', 'Booking ID', 'User Email', 'Created At', 'Updated At', 'Days Old', 'Participants'],
|
||||
['ID', 'Booking ID', 'User Email', 'Travel Date', 'Created At', 'Updated At', 'Days Old', 'Participants'],
|
||||
$rows
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user