Skip to content

Commit d2e4cf2

Browse files
authored
Update Model.php
Fixed updating entries.
1 parent fb7aeac commit d2e4cf2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Utils/Model.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ public function delete()
6464

6565
public function update($data = [])
6666
{
67-
$data = array_merge($this->toArray(), $data);
68-
6967
return $this->request->handleWithExceptions(function () use ($data) {
7068
$response = $this->request->curl->put("/{$this->entity}/{$this->{$this->primaryKey}}", [
7169
'json' => $data,

0 commit comments

Comments
 (0)