Changed comparing the action type from translated in presenter to actual value

This commit is contained in:
mikeroq 2022-07-12 17:59:03 -05:00
parent 0ccd7e09de
commit f21824a8e2

View file

@ -57,7 +57,7 @@ class ActionlogsTransformer
$file_url = '';
if($actionlog->filename!='') {
if ($actionlog->present()->actionType() == 'accepted') {
if ($actionlog->action_type == 'accepted') {
$file_url = route('log.storedeula.download', ['filename' => $actionlog->filename]);
} else {
if ($actionlog->itemType() == 'asset') {