Merge pull request #649 from shocknet/update-user-balance

update user balance script
This commit is contained in:
Justin (shocknet) 2024-03-06 15:06:27 -05:00 committed by GitHub
commit 1d33c35ede

View file

@ -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)