mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fix(getTransactions): coerce tags to string in schema
This is not really needed but it doesn't hurt
This commit is contained in:
parent
d69854fa3c
commit
7226d503f5
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ async function getTransactions(
|
||||||
});
|
});
|
||||||
|
|
||||||
for (const event of events) {
|
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),
|
await signer.nip44.decrypt(pubkey, event.content),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue