Added functionality to update the ticket's last updated time when changing the ticket status or severity
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user