pass constants to nostr service

This commit is contained in:
counterweight 2025-03-07 13:17:55 +01:00
parent 9f4bc729e2
commit 73a71d3ccb
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,5 @@
const constants = require('../constants');
class ServicesProvider {
constructor() {}
@ -9,7 +11,9 @@ class ServicesProvider {
*/
const NostrServiceProvider = require('../services/nostrService');
const nostrService = new NostrServiceProvider().provide();
const nostrService = new NostrServiceProvider({
constants: constants,
}).provide();
const InvitesServiceProvider = require('../services/invitesService');
const invitesService = new InvitesServiceProvider({
nostrService,