aboutsummaryrefslogtreecommitdiffstats
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.ts b/index.ts
index 507e62f4..9e7beefd 100644
--- a/index.ts
+++ b/index.ts
@@ -4,7 +4,7 @@ import { admin, auth, optional } from "$lib/auth";
import { fixBolt12, listenForLightning, replay } from "$lib/lightning";
import { startHealthCheck } from "$lib/health";
import { getLocations } from "$lib/locations";
-import { migrateAccounts, migrateBalancesToTB, migrateToMicrosats } from "$lib/migrate";
+import { migrateAccounts, migrateAutowithdraw, migrateBalancesToTB, migrateToMicrosats } from "$lib/migrate";
import nwc from "$lib/nwc";
import { catchUp, check } from "$lib/payments";
import { getFx } from "$lib/rates";
@@ -38,6 +38,7 @@ try {
migrateAccounts().then((n) => n && console.log(`Migrated ${n} accounts`));
migrateBalancesToTB().then((n) => n && console.log(`Migrated ${n} balances to TB`));
migrateToMicrosats().then((n) => n && console.log(`Migrated ${n} users to microsats`));
+ migrateAutowithdraw().then((n) => n && console.log(`Migrated autowithdraw to ${n} accounts`));
} catch (e) {
console.log(e);
}