mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fix: pipe json payload into desired schema
This commit is contained in:
parent
a2165f0918
commit
d055c80abe
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ export const swapNutzapsMiddleware: MiddlewareHandler<
|
||||||
|
|
||||||
let contentTags: string[][];
|
let contentTags: string[][];
|
||||||
try {
|
try {
|
||||||
contentTags = z.string().array().array().parse(decryptedContent);
|
contentTags = n.json().pipe(z.string().array().array()).parse(decryptedContent);
|
||||||
} catch {
|
} catch {
|
||||||
return c.json({ error: 'Could not parse the decrypted wallet content.' }, 400);
|
return c.json({ error: 'Could not parse the decrypted wallet content.' }, 400);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue