Fix PostDelete

pull/37/head
Varun Patil 2022-08-17 23:26:10 +00:00
parent d101a09137
commit 5d20cc2e7c
1 changed files with 2 additions and 4 deletions

View File

@ -27,15 +27,13 @@ use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener; use OCP\EventDispatcher\IEventListener;
use OCP\Files\Events\Node\NodeDeletedEvent; use OCP\Files\Events\Node\NodeDeletedEvent;
use OCP\Files\Folder; use OCP\Files\Folder;
use OCP\IPreview;
use OCP\IDBConnection; use OCP\IDBConnection;
class PostDeleteListener implements IEventListener { class PostDeleteListener implements IEventListener {
private \OCA\Polaroid\Db\Util $util; private \OCA\Polaroid\Db\Util $util;
public function __construct(IDBConnection $connection, public function __construct(IDBConnection $connection) {
IPreview $previewGenerator) { $this->util = new \OCA\Polaroid\Db\Util($connection);
$this->util = new \OCA\Polaroid\Db\Util($previewGenerator, $connection);
} }
public function handle(Event $event): void { public function handle(Event $event): void {