web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit 29eaf4adbfed09d049bd5dcac7a1e2481c26dd69
parent 96fb3a1d3ee452978d21eb7f1bcf3aa8d8698df3
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Fri, 23 May 2025 04:18:33 +0000

apps-lib: refactor nostr utils

Diffstat:
Mapps-lib/src/lib/util/service/nostr-sync.ts | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/apps-lib/src/lib/util/service/nostr-sync.ts b/apps-lib/src/lib/util/service/nostr-sync.ts @@ -23,12 +23,12 @@ export class NostrSyncService implements INostrSyncService { public metadata = async (opts: INostrSyncServiceMetadata): Promise<NDKEvent | ErrorMessage<string>> => { try { - const { $ndk, $ndk_user } = this.config(); - const { metadata } = opts; + const { $ndk: ndk, $ndk_user: ndk_user } = this.config(); + const { metadata: data } = opts; const ev = await ndk_event_metadata({ - $ndk, - $ndk_user, - metadata, + ndk, + ndk_user, + data, }); if (ev) return ev; return err_msg(`error.nostr.sync.metadata.missing_event`);