mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 10:50:29 +01:00
remove persist() for PATCH and DELETE
This commit is contained in:
parent
2c093b03de
commit
c0284f6182
@ -140,7 +140,6 @@ class WallabagRestController extends Controller
|
||||
}
|
||||
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$em->persist($entry);
|
||||
$em->flush();
|
||||
|
||||
return $entry;
|
||||
@ -163,7 +162,6 @@ class WallabagRestController extends Controller
|
||||
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$entry->setDeleted(1);
|
||||
$em->persist($entry);
|
||||
$em->flush();
|
||||
|
||||
return $entry;
|
||||
|
Loading…
Reference in New Issue
Block a user