fix delete transaction flow

This commit is contained in:
hackerESQ
2024-08-30 20:58:00 -05:00
parent b13bb198d3
commit 2a42ce9d12
7 changed files with 109 additions and 66 deletions
+4 -4
View File
@@ -57,7 +57,7 @@ class MarketData extends Model
// check if new or stale
if (
!$market_data->exists
!$market_data->exists
|| is_null($market_data->updated_at)
|| $market_data->updated_at->diffInMinutes(now()) >= config('market_data.refresh')
) {
@@ -67,10 +67,10 @@ class MarketData extends Model
// fill data
$market_data->fill($quote->toArray());
}
// save with timestamps updated
$market_data->touch();
// save with timestamps updated
$market_data->touch();
}
return $market_data;
}