From 7924fc2127c6bfe597a6094153f0f658dfb6fc0f Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sat, 3 Feb 2024 18:01:57 -0300 Subject: [PATCH] Fix integration tests Signed-off-by: Vitor Mattos --- lib/Service/AccountService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 90fce44406..b9d39f14bf 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -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( @@ -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();