Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! feat: Move transfer to background job
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Jun 24, 2024
1 parent baabfac commit c625d10
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/TransferService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit c625d10

Please sign in to comment.