fix: refactor search routes (#1529)
Refactor find endpoints to be consistent in terms of input and output.
This commit is contained in:
@@ -24,9 +24,9 @@ import {
|
||||
|
||||
export const adminRouter = router({
|
||||
findDocuments: adminProcedure.input(ZAdminFindDocumentsQuerySchema).query(async ({ input }) => {
|
||||
const { term, page, perPage } = input;
|
||||
const { query, page, perPage } = input;
|
||||
|
||||
return await findDocuments({ term, page, perPage });
|
||||
return await findDocuments({ query, page, perPage });
|
||||
}),
|
||||
|
||||
updateUser: adminProcedure
|
||||
|
||||
Reference in New Issue
Block a user