mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 18:20:24 -05:00
* Add ESM loader support and update sync-server modules * Update TypeScript configuration and fix bank file import filter in sync-server * Remove deprecated loader and register files, update TypeScript configuration to use ES2021, and add a new script for automatically adding import extensions to JavaScript files. * Update test script in package.json to include a custom loader and clean up import extensions script by removing unused 'stat' import. * feat: Add warning for unresolved imports Co-authored-by: matiss <matiss@mja.lv> * [autofix.ci] apply automated fixes * Remove unused 'import/extensions' rule from ESLint configuration * Refactor import statements in sync-server - Updated import path for migrations to remove file extension. - Added ESLint directive to ignore import extension rule for reset-password script. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
20 lines
628 B
JavaScript
20 lines
628 B
JavaScript
import { getAccountDb } from '../src/account-db';
|
|
|
|
export const up = async function () {
|
|
await getAccountDb().exec(
|
|
`UPDATE secrets SET name = 'gocardless_secretId' WHERE name = 'nordigen_secretId'`,
|
|
);
|
|
await getAccountDb().exec(
|
|
`UPDATE secrets SET name = 'gocardless_secretKey' WHERE name = 'nordigen_secretKey'`,
|
|
);
|
|
};
|
|
|
|
export const down = async function () {
|
|
await getAccountDb().exec(
|
|
`UPDATE secrets SET name = 'nordigen_secretId' WHERE name = 'gocardless_secretId'`,
|
|
);
|
|
await getAccountDb().exec(
|
|
`UPDATE secrets SET name = 'nordigen_secretKey' WHERE name = 'gocardless_secretKey'`,
|
|
);
|
|
};
|