mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 22:32:28 +00:00
fix dirs query param
This commit is contained in:
@@ -1106,7 +1106,7 @@ export namespace Server {
|
||||
"query",
|
||||
z.object({
|
||||
query: z.string(),
|
||||
dirs: z.boolean().optional(),
|
||||
dirs: z.union([z.literal("true"), z.literal("false")]).optional(),
|
||||
}),
|
||||
),
|
||||
async (c) => {
|
||||
@@ -1115,7 +1115,7 @@ export namespace Server {
|
||||
const results = await File.search({
|
||||
query,
|
||||
limit: 10,
|
||||
dirs,
|
||||
dirs: dirs !== "false",
|
||||
})
|
||||
return c.json(results)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user