Skip to content

Commit c69dcb7

Browse files
committed
Use insertID method instead of property, fixes #2
1 parent 1b7cfbc commit c69dcb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/AuditsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function auditInsert(array $data)
4747

4848
$audit = [
4949
'source' => $this->table,
50-
'source_id' => $data['result']->connID->insert_id,
50+
'source_id' => $this->db->insertID(),
5151
'event' => 'insert',
5252
'summary' => count($data['data']) . ' fields',
5353
];

0 commit comments

Comments
 (0)