fix
This commit is contained in:
parent
d391a4c123
commit
852eae847e
2 changed files with 5 additions and 4 deletions
|
|
@ -15,6 +15,7 @@ import { UserReceivingInvoice } from '../storage/entity/UserReceivingInvoice.js'
|
||||||
import { UnsignedEvent } from '../nostr/tools/event.js'
|
import { UnsignedEvent } from '../nostr/tools/event.js'
|
||||||
import { NostrSend } from '../nostr/handler.js'
|
import { NostrSend } from '../nostr/handler.js'
|
||||||
import MetricsManager from '../metrics/index.js'
|
import MetricsManager from '../metrics/index.js'
|
||||||
|
import { LoggedEvent } from '../storage/eventsLog.js'
|
||||||
|
|
||||||
type UserOperationsSub = {
|
type UserOperationsSub = {
|
||||||
id: string
|
id: string
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,11 @@ export const initMainHandler = async (log: PubLogger, mainSettings: MainSettings
|
||||||
if (manualMigration) {
|
if (manualMigration) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!mainSettings.skipSanityCheck) {
|
|
||||||
await storageManager.VerifyEventsLog()
|
|
||||||
}
|
|
||||||
const mainHandler = new Main(mainSettings, storageManager)
|
const mainHandler = new Main(mainSettings, storageManager)
|
||||||
await mainHandler.lnd.Warmup()
|
await mainHandler.lnd.Warmup()
|
||||||
|
if (!mainSettings.skipSanityCheck) {
|
||||||
|
await mainHandler.VerifyEventsLog()
|
||||||
|
}
|
||||||
const appsData = await mainHandler.storage.applicationStorage.GetApplications()
|
const appsData = await mainHandler.storage.applicationStorage.GetApplications()
|
||||||
const existingWalletApp = await appsData.find(app => app.name === 'wallet' || app.name === 'wallet-test')
|
const existingWalletApp = await appsData.find(app => app.name === 'wallet' || app.name === 'wallet-test')
|
||||||
if (!existingWalletApp) {
|
if (!existingWalletApp) {
|
||||||
|
|
@ -49,7 +49,7 @@ const processArgs = async (mainHandler: Main) => {
|
||||||
getLogger({ userId: process.argv[3] })(`user balance updated correctly`)
|
getLogger({ userId: process.argv[3] })(`user balance updated correctly`)
|
||||||
return false
|
return false
|
||||||
case 'unlock':
|
case 'unlock':
|
||||||
await mainHandler.storage.userStorage.UnlockUser(process.argv[3])
|
await mainHandler.storage.userStorage.UnbanUser(process.argv[3])
|
||||||
getLogger({ userId: process.argv[3] })(`user unlocked`)
|
getLogger({ userId: process.argv[3] })(`user unlocked`)
|
||||||
return false
|
return false
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue