From c625d108ccc96acd3f46ea99834d627aed258c41 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Mon, 24 Jun 2024 15:28:22 -0700 Subject: [PATCH] fixup! fixup! fixup! fixup! feat: Move transfer to background job Signed-off-by: Christopher Ng --- lib/TransferService.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/TransferService.php b/lib/TransferService.php index 0b4708e0..46ab2856 100644 --- a/lib/TransferService.php +++ b/lib/TransferService.php @@ -94,22 +94,4 @@ public function addTransferJob(IUser $author, IUser $source, string $target): vo 'id' => $transfer->getId(), ]); } - - public function getTransfer(IUser $source, string $target): ?Transfer { - try { - $transfer = $this->transferMapper->getBySource($source->getUID()); - return $transfer; - } catch (DoesNotExistException $e) { - // Allow as this just means there is no pending transfer - } - - try { - $transfer = $this->transferMapper->getByTarget($target); - return $transfer; - } catch (DoesNotExistException $e) { - // Allow as this just means there is no pending transfer - } - - return null; - } }