Merge branch 'nostr-keys-parse' into 'main'
NKeyStorage: fix dataSchema so it correctly parses the result as an array See merge request soapbox-pub/soapbox!3013
This commit is contained in:
commit
4e7a259dd4
|
@ -35,7 +35,7 @@ export class NKeyStorage implements ReadonlyMap<string, NostrSigner> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private dataSchema(): z.ZodType<`nsec1${string}`[]> {
|
private dataSchema(): z.ZodType<`nsec1${string}`[]> {
|
||||||
return n.json().pipe(n.bech32('nsec')).array() as z.ZodType<`nsec1${string}`[]>;
|
return n.json().pipe(n.bech32('nsec').array()) as z.ZodType<`nsec1${string}`[]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
#syncStorage() {
|
#syncStorage() {
|
||||||
|
|
Loading…
Reference in New Issue