From aeae71baf87a3d10bd01d19e62ee9ea5caacc7bb Mon Sep 17 00:00:00 2001 From: boufni95 Date: Fri, 27 Oct 2023 20:09:27 +0200 Subject: [PATCH] less logs --- src/nostrMiddleware.ts | 2 -- src/services/nostr/handler.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/src/nostrMiddleware.ts b/src/nostrMiddleware.ts index ec1e7397..7c518e4b 100644 --- a/src/nostrMiddleware.ts +++ b/src/nostrMiddleware.ts @@ -8,14 +8,12 @@ const handledRequests: string[] = [] // TODO: - big memory leak here, add TTL export default (serverMethods: Types.ServerMethods, mainHandler: Main, nostrSettings: NostrSettings) => { const nostrTransport = NewNostrTransport(serverMethods, { NostrUserAuthGuard: async (appId, pub) => { - console.log({ appId }) const app = await mainHandler.storage.applicationStorage.GetApplication(appId || "") let nostrUser = await mainHandler.storage.applicationStorage.GetOrCreateNostrAppUser(app, pub || "") return { user_id: nostrUser.user.user_id, app_user_id: nostrUser.identifier, app_id: appId || "" } } }) const nostr = new Nostr(nostrSettings, event => { - console.log(event) let j: NostrRequest try { j = JSON.parse(event.content) diff --git a/src/services/nostr/handler.ts b/src/services/nostr/handler.ts index 5cb65d2f..8e3b7e9f 100644 --- a/src/services/nostr/handler.ts +++ b/src/services/nostr/handler.ts @@ -105,7 +105,6 @@ export default class Handler { } ]) sub.on("event", async (e) => { - console.log({ nostrEvent: e }) if (e.kind !== 4 || !e.pubkey) { return }