[server] Use an intermediate variable, to prevent changing the type of the...
[server] Use an intermediate variable, to prevent changing the type of the variable when updating its value.
This MR aims at fixing the following TSC error:
server/controllers/v1/all.js:168:13 - error TS2322: Type 'string' is not assignable to type '{ accounts: any[]; accesses: any[]; categories: any[]; operations: any[]; settings: any[]; budgets: any[]; alerts: any[]; }'.
168 data = encryptData(data, passphrase);
~~~~