mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-15 19:22:08 -06:00
Encrypt more stuff in the cleanup routine [skip ci]
This commit is contained in:
parent
c5a5f17643
commit
36b951b146
@ -9,6 +9,7 @@ use FireflyIII\Models\Category;
|
||||
use FireflyIII\Models\LimitRepetition;
|
||||
use FireflyIII\Models\PiggyBank;
|
||||
use FireflyIII\Models\PiggyBankEvent;
|
||||
use FireflyIII\Models\PiggyBankRepetition;
|
||||
use FireflyIII\Models\Preference;
|
||||
use FireflyIII\Models\Reminder;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
@ -218,6 +219,16 @@ class Cleanup
|
||||
unset($set, $entry, $amount);
|
||||
|
||||
// encrypt piggy bank repetition currentamount
|
||||
$set = PiggyBankRepetition::whereNull('amount_encrypted')->take(5)->get();
|
||||
/** @var PiggyBankRepetition $entry */
|
||||
foreach ($set as $entry) {
|
||||
$count++;
|
||||
$amount = $entry->currentamount;
|
||||
$entry->currentamount = $amount;
|
||||
$entry->save();
|
||||
}
|
||||
unset($set, $entry, $amount);
|
||||
|
||||
//encrypt piggy bank targetamount
|
||||
//encrypt preference name (add field)
|
||||
//encrypt preference data (add field)
|
||||
|
Loading…
Reference in New Issue
Block a user