From 19baea31c2fd00e53328a9aa6e217049cb37cfd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Mon, 17 Apr 2023 02:21:19 +0200 Subject: [PATCH] fixup! implement audit logger --- src/Database/Query/Modify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Database/Query/Modify.php b/src/Database/Query/Modify.php index 8246e0e..fa66c33 100755 --- a/src/Database/Query/Modify.php +++ b/src/Database/Query/Modify.php @@ -105,7 +105,7 @@ class Modify $stmt->execute([$this->idName => $this->attributes[$this->idName]]); if ($this->auditLogger !== null) { - $this->auditLogger->logDelete($this->attributes[$this->idName], $this->attributes); + $this->auditLogger->logDelete($this->table, $this->attributes[$this->idName], $this->attributes); } } @@ -129,7 +129,7 @@ class Modify } if ($this->auditLogger !== null) { - $this->auditLogger->logInsert($this->attributes[$this->idName]); + $this->auditLogger->logInsert($this->table, $this->attributes[$this->idName]); } } @@ -151,7 +151,7 @@ class Modify $stmt->execute(array_merge($attributes, [$this->idName => $this->attributes[$this->idName]])); if ($this->auditLogger !== null) { - $this->auditLogger->logUpdate($this->attributes[$this->idName], $this->diff); + $this->auditLogger->logUpdate($this->table, $this->attributes[$this->idName], $this->diff); } }