mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
Encrypt more stuff in the cleanup routine [skip ci]
This commit is contained in:
parent
16b909c4df
commit
c5a5f17643
@ -8,6 +8,7 @@ use FireflyIII\Models\BudgetLimit;
|
||||
use FireflyIII\Models\Category;
|
||||
use FireflyIII\Models\LimitRepetition;
|
||||
use FireflyIII\Models\PiggyBank;
|
||||
use FireflyIII\Models\PiggyBankEvent;
|
||||
use FireflyIII\Models\Preference;
|
||||
use FireflyIII\Models\Reminder;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
@ -206,6 +207,16 @@ class Cleanup
|
||||
unset($set, $entry, $amount);
|
||||
|
||||
//encrypt piggy bank event amount
|
||||
$set = PiggyBankEvent::whereNull('amount_encrypted')->take(5)->get();
|
||||
/** @var PiggyBankEvent $entry */
|
||||
foreach ($set as $entry) {
|
||||
$count++;
|
||||
$amount = $entry->amount;
|
||||
$entry->amount = $amount;
|
||||
$entry->save();
|
||||
}
|
||||
unset($set, $entry, $amount);
|
||||
|
||||
//encrypt piggy bank repetition currentamount
|
||||
//encrypt piggy bank targetamount
|
||||
//encrypt preference name (add field)
|
||||
|
Loading…
Reference in New Issue
Block a user