update koneksi DB
This commit is contained in:
@@ -16,7 +16,7 @@ class AuditService
|
||||
'user_id'=>$userId ? (int)$userId : null,
|
||||
'ip_address'=>isset($this->CI->input) ? $this->CI->input->ip_address() : null,
|
||||
'user_agent'=>isset($this->CI->input) ? substr((string)$this->CI->input->user_agent(),0,255) : null,
|
||||
'request_id'=>function_exists('getenv') ? (getenv('HTTP_X_REQUEST_ID') ?: null) : null,
|
||||
'request_id'=>app_env('HTTP_X_REQUEST_ID', null) ?: null,
|
||||
'previous_hash'=>$previous ? $previous->record_hash : null, 'created_at'=>$created
|
||||
);
|
||||
$data['record_hash'] = hash('sha256', ($data['previous_hash'] ?: '') . json_encode($data, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES));
|
||||
|
||||
Reference in New Issue
Block a user