Skip to content

Commit

Permalink
refactor: remove isDefault option
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Dec 11, 2024
1 parent 3c5bd8f commit 28d1758
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Campaigns/Migrations/MigrateFormsToCampaignForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function createCampaignForForm($formData): void

$campaignId = DB::last_insert_id();

$this->addCampaignFormRelationship($formId, $campaignId, true);
$this->addCampaignFormRelationship($formId, $campaignId);
}

/**
Expand All @@ -165,13 +165,12 @@ protected function addUpgradedFormToCampaign($data): void
/**
* @unreleased
*/
protected function addCampaignFormRelationship($formId, $campaignId, $isDefault = false)
protected function addCampaignFormRelationship($formId, $campaignId)
{
DB::table('give_campaign_forms')
->insert([
'form_id' => $formId,
'campaign_id' => $campaignId,
'is_default' => $isDefault,
]);
}

Expand Down

0 comments on commit 28d1758

Please sign in to comment.