fix: [auditlog] Clean up of leftover copy paste

pull/93/head
Sami Mokaddem 2022-01-20 13:43:29 +01:00
parent a98c7f8f32
commit f3813dd5a7
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 7 deletions

View File

@ -43,14 +43,8 @@ class AuditLogsTable extends AppTable
public function initialize(array $config): void
{
parent::initialize($config);
$this->addBehavior('UUID');
$this->addBehavior('Timestamp', [
'Model.beoreSave' => [
'created_at' => 'new'
]
]);
$this->addBehavior('Timestamp');
$this->belongsTo('Users');
$this->setDisplayField('info');
$this->compressionEnabled = Configure::read('Cerebrate.log_new_audit_compress') && function_exists('brotli_compress');
}