mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-14 02:54:19 +01:00
schemas/nostr: add search key to filters
This commit is contained in:
@@ -29,6 +29,7 @@ const filterSchema = z.object({
|
||||
since: z.number().int().nonnegative().optional(),
|
||||
until: z.number().int().nonnegative().optional(),
|
||||
limit: z.number().int().nonnegative().optional(),
|
||||
search: z.string().optional(),
|
||||
}).passthrough().and(
|
||||
z.record(
|
||||
z.custom<`#${string}`>((val) => typeof val === 'string' && val.startsWith('#')),
|
||||
|
||||
Reference in New Issue
Block a user