Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Feb 3, 2024
1 parent ec95b2c commit 7924fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

class AccountService {
private ?SignRequest $signRequest = null;
private \OCA\Libresign\Db\File $fileData;
private ?\OCA\Libresign\Db\File $fileData = null;
private \OCP\Files\File $fileToSign;

public function __construct(
Expand Down Expand Up @@ -127,7 +127,7 @@ public function validateCreateToSign(array $data): void {

public function getFileByUuid(string $uuid): array {
$signRequest = $this->getSignRequestByUuid($uuid);
if (!$this->fileData) {
if (!$this->fileData instanceof \OCA\Libresign\Db\File) {
$this->fileData = $this->fileMapper->getById($signRequest->getFileId());

$nodeId = $this->fileData->getNodeId();
Expand Down

0 comments on commit 7924fc2

Please sign in to comment.