fix(getTransactions): coerce tags to string in schema

This is not really needed but it doesn't hurt
This commit is contained in:
P. Reis 2025-03-21 10:09:38 -03:00
parent d69854fa3c
commit 7226d503f5

View file

@ -308,7 +308,7 @@ async function getTransactions(
});
for (const event of events) {
const { data: contentTags, success } = n.json().pipe(z.string().array().min(2).array()).safeParse(
const { data: contentTags, success } = n.json().pipe(z.coerce.string().array().min(2).array()).safeParse(
await signer.nip44.decrypt(pubkey, event.content),
);