Added functionality to update the ticket's last updated time when changing the ticket status or severity

This commit is contained in:
2022-12-04 17:15:17 -05:00
parent 77c8605b49
commit ab2c87ce3a
4 changed files with 26 additions and 7 deletions

View File

@ -82,7 +82,10 @@ class TicketController extends Controller {
$ticket->save();
// return a response
$response->getBody()->write(json_encode(['status' => 'success']));
$response->getBody()->write(json_encode([
'result' => 'success',
'updated_at' => $ticket->formatUpdatedAt(),
]));
return $response;
}