mirror of
https://github.com/documenso/documenso.git
synced 2025-11-11 04:52:41 +10:00
fix: refactor search routes (#1529)
Refactor find endpoints to be consistent in terms of input and output.
This commit is contained in:
@ -427,7 +427,7 @@ export const ApiContractV1Implementation = createNextRoute(ApiContractV1, {
|
||||
const perPage = Number(args.query.perPage) || 10;
|
||||
|
||||
try {
|
||||
const { templates, totalPages } = await findTemplates({
|
||||
const { data: templates, totalPages } = await findTemplates({
|
||||
page,
|
||||
perPage,
|
||||
userId: user.id,
|
||||
|
||||
Reference in New Issue
Block a user