diff --git a/app/Models/GithubEventsApplications.php b/app/Models/GithubEventsApplications.php deleted file mode 100644 index 11c89bfd2..000000000 --- a/app/Models/GithubEventsApplications.php +++ /dev/null @@ -1,14 +0,0 @@ -id(); - $table->string('delivery_guid'); - $table->foreignId('application_id'); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('github_events_applications'); - } -}; diff --git a/routes/webhooks.php b/routes/webhooks.php index cd1a9d5cd..bab877df5 100644 --- a/routes/webhooks.php +++ b/routes/webhooks.php @@ -96,10 +96,6 @@ $applications = Application::where('project_id', $id)->where('git_branch', $branch)->get(); foreach ($applications as $application) { if ($application->isDeployable()) { - GithubEventsApplications::create([ - "delivery_guid" => $x_github_delivery, - "application_id" => $application->id - ]); $deployment_uuid = new Cuid2(7); dispatch(new DeployApplicationJob( deployment_uuid: $deployment_uuid,