mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-02 20:14:19 +01:00
fmt
This commit is contained in:
@@ -11,8 +11,7 @@ const kysely = await DittoDB.getInstance();
|
||||
const eventsDB = new EventsDB(kysely);
|
||||
|
||||
const [pubkeyOrNpub, role] = Deno.args;
|
||||
const pubkey = pubkeyOrNpub.startsWith('npub') ?
|
||||
nip19.decode(pubkeyOrNpub).data as string : pubkeyOrNpub;
|
||||
const pubkey = pubkeyOrNpub.startsWith('npub') ? nip19.decode(pubkeyOrNpub).data as string : pubkeyOrNpub;
|
||||
|
||||
if (!NSchema.id().safeParse(pubkey).success) {
|
||||
console.error('Invalid pubkey');
|
||||
|
||||
Reference in New Issue
Block a user