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

This commit is contained in:
gballan committed 2022-12-04 17:15:17 -05:00
1 parent 77c8605b49
commit ab2c87ce3a
4 files changed
+26 -7

No files matched your search

+4 -1
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;
}