diff --git a/app/Http/Controllers/Bo/TicketController.php b/app/Http/Controllers/Bo/TicketController.php index 5d026e9..2584f3f 100644 --- a/app/Http/Controllers/Bo/TicketController.php +++ b/app/Http/Controllers/Bo/TicketController.php @@ -139,7 +139,7 @@ class TicketController extends Controller 'ticket' => $ticket, 'messages' => $messages, 'isSubscribed' => $isSubscribed - ]); + ]); } /** @@ -669,26 +669,6 @@ class TicketController extends Controller } } - // if (!\is_null($ticket->file2)) { - // $uploadedFile2 = GitLab::projects()->uploadFile($gitlabRepoId, $ticket->file2); - // $description .= $this->formatGitlabFiles($ticket, $uploadedFile2, 2); - // } - - // if (!\is_null($ticket->file3)) { - // $uploadedFile3 = GitLab::projects()->uploadFile($gitlabRepoId, $ticket->file3); - // $description .= $this->formatGitlabFiles($ticket, $uploadedFile3, 3); - // } - - // if (!\is_null($ticket->file4)) { - // $uploadedFile4 = GitLab::projects()->uploadFile($gitlabRepoId, $ticket->file4); - // $description .= $this->formatGitlabFiles($ticket, $uploadedFile4, 4); - // } - - // if (!\is_null($ticket->file5)) { - // $uploadedFile5 = GitLab::projects()->uploadFile($gitlabRepoId, $ticket->file5); - // $description .= $this->formatGitlabFiles($ticket, $uploadedFile5, 5); - // } - $issue = GitLab::issues()->create($gitlabRepoId, [ 'title' => 'ts-' . $ticket->id, 'description' => $description, diff --git a/database/migrations/2024_07_19_151553_add_files_to_messages_table.php b/database/migrations/2024_07_19_151553_add_files_to_messages_table.php index 214885d..f3ec4c1 100644 --- a/database/migrations/2024_07_19_151553_add_files_to_messages_table.php +++ b/database/migrations/2024_07_19_151553_add_files_to_messages_table.php @@ -27,8 +27,8 @@ return new class extends Migration public function down() { Schema::table('messages', function (Blueprint $table) { + $table->dropColumn('file2'); $table->dropColumn('file3'); - $table->dropColumn('file4'); }); } };