Skip to content

Commit

Permalink
refactor: remove updateFundId method
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Dec 13, 2023
1 parent 454371f commit 0d62470
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Revenue/Repositories/Revenue.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@ public function deleteByDonationId($revenueId)
);
}

/**
* @unreleased
*
* @return false|int
*/
public function updateFundId(int $fundId, Donation $donation)
{
global $wpdb;

return DB::update(
$wpdb->give_revenue,
['fund_id' => $fundId],
['donation_id' => $donation->id],
['%d'],
['%d']
);
}

/**
* @since 2.22.1
*
Expand Down

0 comments on commit 0d62470

Please sign in to comment.