nostr handler
This commit is contained in:
parent
1950bebd74
commit
acb09396ec
2 changed files with 5 additions and 3 deletions
|
|
@ -40,8 +40,11 @@ export default (serverMethods: Types.ServerMethods, mainHandler: Main, nostrSett
|
|||
})
|
||||
|
||||
let nostr: Nostr;
|
||||
const managementManager = new ManagementManager((...args: Parameters<NostrSend>) => nostr.Send(...args), mainHandler.storage);
|
||||
mainHandler.managementManager = managementManager;
|
||||
if (!mainHandler.managementManager) {
|
||||
throw new Error("management manager not initialized on main handler")
|
||||
}
|
||||
|
||||
const managementManager = mainHandler.managementManager;
|
||||
|
||||
nostr = new Nostr(nostrSettings, mainHandler.utils, event => {
|
||||
let j: NostrRequest
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ export default class {
|
|||
this.appUserManager = new AppUserManager(this.storage, this.settings, this.applicationManager)
|
||||
this.debitManager = new DebitManager(this.storage, this.lnd, this.applicationManager)
|
||||
this.offerManager = new OfferManager(this.storage, this.lnd, this.applicationManager, this.productManager, this.liquidityManager)
|
||||
const nostrSettings = LoadNosrtSettingsFromEnv()
|
||||
this.managementManager = new ManagementManager(this.nostrSend, this.storage)
|
||||
//this.webRTC = new webRTC(this.storage, this.utils)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue