fix: Allow sort by title in documents.list
This commit is contained in:
@@ -8,7 +8,7 @@ const DocumentsSortParamsSchema = z.object({
|
||||
/** Specifies the attributes by which documents will be sorted in the list */
|
||||
sort: z
|
||||
.string()
|
||||
.refine((val) => ["createdAt", "updatedAt", "index"].includes(val))
|
||||
.refine((val) => ["createdAt", "updatedAt", "index", "title"].includes(val))
|
||||
.default("updatedAt"),
|
||||
|
||||
/** Specifies the sort order with respect to sort field */
|
||||
|
||||
Reference in New Issue
Block a user