cleanup tmp fix
This commit is contained in:
parent
3046e73464
commit
0a2556d0d4
2 changed files with 0 additions and 8 deletions
|
|
@ -271,13 +271,6 @@ export class AdminManager {
|
||||||
return { quotes }
|
return { quotes }
|
||||||
}
|
}
|
||||||
|
|
||||||
TMP_FIX_ADMIN_TX_ID = async () => {
|
|
||||||
this.log("fixing tmp admin tx")
|
|
||||||
await this.storage.paymentStorage.UpdateInvoiceSwap("6089e1e5-2178-418e-ae19-d32ac5eb1a84", {
|
|
||||||
used: false, failure_reason: "", tx_id: "f997b521ce1374a85e40a0fee5ad40692338b0f5965002b9f07d141cdbe03036"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
async PayAdminInvoiceSwap(req: Types.PayAdminInvoiceSwapRequest): Promise<Types.AdminInvoiceSwapResponse> {
|
async PayAdminInvoiceSwap(req: Types.PayAdminInvoiceSwapRequest): Promise<Types.AdminInvoiceSwapResponse> {
|
||||||
const txId = await new Promise<string>(res => {
|
const txId = await new Promise<string>(res => {
|
||||||
this.swaps.PayInvoiceSwap("admin", req.swap_operation_id, req.sat_per_v_byte, async (addr, amt) => {
|
this.swaps.PayInvoiceSwap("admin", req.swap_operation_id, req.sat_per_v_byte, async (addr, amt) => {
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,6 @@ export const initMainHandler = async (log: PubLogger, settingsManager: SettingsM
|
||||||
await mainHandler.paymentManager.CleanupOldUnpaidInvoices()
|
await mainHandler.paymentManager.CleanupOldUnpaidInvoices()
|
||||||
await mainHandler.appUserManager.CleanupInactiveUsers()
|
await mainHandler.appUserManager.CleanupInactiveUsers()
|
||||||
await mainHandler.appUserManager.CleanupNeverActiveUsers()
|
await mainHandler.appUserManager.CleanupNeverActiveUsers()
|
||||||
await adminManager.TMP_FIX_ADMIN_TX_ID()
|
|
||||||
await swaps.ResumeInvoiceSwaps()
|
await swaps.ResumeInvoiceSwaps()
|
||||||
await mainHandler.paymentManager.watchDog.Start()
|
await mainHandler.paymentManager.watchDog.Start()
|
||||||
return { mainHandler, apps, localProviderClient, wizard, adminManager }
|
return { mainHandler, apps, localProviderClient, wizard, adminManager }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue