up
This commit is contained in:
parent
0de173594f
commit
37033295b1
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ export class LiquidityStorage {
|
|||
return this.txQueue.PushToQueue<TrackedProvider>({ exec: async db => db.getRepository(TrackedProvider).save(entry), dbTx: false })
|
||||
}
|
||||
async UpdateTrackedProviderBalance(providerType: 'lnd' | 'lnPub', pub: string, latestBalance: number) {
|
||||
console.log("updating tracked balance:", latestBalance)
|
||||
return this.DB.getRepository(TrackedProvider).update({ provider_pubkey: pub, provider_type: providerType }, { latest_balance: latestBalance })
|
||||
}
|
||||
async UpdateTrackedProviderDisruption(providerType: 'lnd' | 'lnPub', pub: string, latestDisruptionAtUnix: number) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue