diff options
| author | Adam Soltys <[email protected]> | 2026-02-18 07:49:25 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-18 07:49:25 -0800 |
| commit | b1e3435613ef092d43353d511b632a8de64efc5d (patch) | |
| tree | a300812eec33177505dbba5882d25669fea4243e /index.ts | |
| parent | 6e5c851fe1c4e7402014c5a42c8a5f919365a2c7 (diff) | |
| download | coinos-server-b1e3435613ef092d43353d511b632a8de64efc5d.tar.gz coinos-server-b1e3435613ef092d43353d511b632a8de64efc5d.zip | |
migrate funds to tb
Diffstat (limited to 'index.ts')
| -rw-r--r-- | index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, migrateAutowithdraw, migrateBalancesToTB, migrateToMicrosats } from "$lib/migrate"; +import { migrateAccounts, migrateAutowithdraw, migrateBalancesToTB, migrateFundsToTB, migrateToMicrosats } from "$lib/migrate"; import nwc from "$lib/nwc"; import { catchUp, check } from "$lib/payments"; import { getFx } from "$lib/rates"; @@ -39,6 +39,7 @@ try { 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`)); + migrateFundsToTB().then((n) => n && console.log(`Migrated ${n} funds to TB`)); } catch (e) { console.log(e); } |
