diff --git a/src/index.ts b/src/index.ts index 32757ea1..14fc294f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,6 +18,10 @@ const start = async () => { log("migrations run sucessfully, exiting") return } + if (process.argv[2] === 'updateUserBalance') { + await storageManager.userStorage.UpdateUser(process.argv[3], { balance_sats: +process.argv[4] }) + log("user balance updated correctly") + } const mainHandler = new Main(mainSettings, storageManager) await mainHandler.lnd.Warmup() const serverMethods = GetServerMethods(mainHandler)