mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Encrypt more stuff in the cleanup routine [skip ci]
This commit is contained in:
parent
92b7648e03
commit
16b909c4df
@ -6,6 +6,7 @@ use FireflyIII\Models\Bill;
|
||||
use FireflyIII\Models\Budget;
|
||||
use FireflyIII\Models\BudgetLimit;
|
||||
use FireflyIII\Models\Category;
|
||||
use FireflyIII\Models\LimitRepetition;
|
||||
use FireflyIII\Models\PiggyBank;
|
||||
use FireflyIII\Models\Preference;
|
||||
use FireflyIII\Models\Reminder;
|
||||
@ -193,7 +194,17 @@ class Cleanup
|
||||
}
|
||||
unset($set, $entry, $amount);
|
||||
|
||||
//encrypt limit repetition amount
|
||||
// encrypt limit repetition amount
|
||||
$set = LimitRepetition::whereNull('amount_encrypted')->take(5)->get();
|
||||
/** @var LimitRepetition $entry */
|
||||
foreach ($set as $entry) {
|
||||
$count++;
|
||||
$amount = $entry->amount;
|
||||
$entry->amount = $amount;
|
||||
$entry->save();
|
||||
}
|
||||
unset($set, $entry, $amount);
|
||||
|
||||
//encrypt piggy bank event amount
|
||||
//encrypt piggy bank repetition currentamount
|
||||
//encrypt piggy bank targetamount
|
||||
|
Loading…
Reference in New Issue
Block a user