Skip to content

Commit

Permalink
Fix migration when finding resource node by resource file chamilo#5600
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jul 2, 2024
1 parent fe882eb commit 8e0fbf0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ public function up(Schema $schema): void
$resourceFile = $resourceFileRepository->findOneBy(['originalName' => $fileName]);

if ($resourceFile) {
$resourceFileId = $resourceFile->getId();
$resourceNode = $resourceNodeRepository->findOneBy(['resourceFile' => $resourceFileId]);
$resourceNode = $resourceFile->getResourceNode();

if ($resourceNode) {
$downUserId = $download->getDownUserId();
Expand Down

0 comments on commit 8e0fbf0

Please sign in to comment.