From 73cee51f0fa27f459a5d90a674a2de9c1c62ce4a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 28 May 2021 22:22:44 +0200 Subject: [PATCH] bug fixes with unit testing --- Admin/Install/db.json | 2 +- Admin/Installer.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Admin/Install/db.json b/Admin/Install/db.json index f6487d4..80fb4cc 100755 --- a/Admin/Install/db.json +++ b/Admin/Install/db.json @@ -150,7 +150,7 @@ "foreignKey": "media_id" }, "media_tag_dst": { - "name": "task_tag_dst", + "name": "media_tag_dst", "type": "INT", "null": false, "foreignTable": "tag", diff --git a/Admin/Installer.php b/Admin/Installer.php index e0a97d9..34665ba 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -108,7 +108,7 @@ final class Installer extends InstallerAbstract * * @since 1.0.0 */ - private static function createCollection($dbPool, $data) : Collection + private static function createCollection(DatabasePool $dbPool, array $data) : Collection { if (!isset($data['path'])) { $dirPath = __DIR__ . '/../../../Modules/Media/Files' . ($data['virtualPath'] ?? '/') . '/' . ($data['name'] ?? ''); @@ -144,7 +144,7 @@ final class Installer extends InstallerAbstract * * @since 1.0.0 */ - private static function uploadMedia($dbPool, $data) : array + private static function uploadMedia(DatabasePool $dbPool, array $data) : array { $files = []; foreach ($data['files'] as $file) {