mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2025-07-30 01:58:41 -04:00
Try to fix bug with sending payments
This commit is contained in:
parent
4549923b4f
commit
163e049aff
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class ProcessPayments implements ShouldQueue
|
||||||
$memes = Meme::where('payment_pending', 1)->get();
|
$memes = Meme::where('payment_pending', 1)->get();
|
||||||
foreach ($memes as $meme) {
|
foreach ($memes as $meme) {
|
||||||
$balance = $walletRPC->get_balance($meme->account_index);
|
$balance = $walletRPC->get_balance($meme->account_index);
|
||||||
if ($balance['balance'] === $balance['unlocked_balance']) {
|
if ($balance['unlocked_balance'] > 0 && $balance['balance'] === $balance['unlocked_balance']) {
|
||||||
try {
|
try {
|
||||||
$send_funds = $walletRPC->sweep_all($meme->user->address, '', $meme->account_index);
|
$send_funds = $walletRPC->sweep_all($meme->user->address, '', $meme->account_index);
|
||||||
if ($send_funds['amount_list']) {
|
if ($send_funds['amount_list']) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue