Skip to content

[server] Use an intermediate variable, to prevent changing the type of the...

Antoine requested to merge ZeHiro/kresus:fix-data into master

[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);
                ~~~~

Merge request reports

Loading