mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 09:03:15 +00:00
add 2 fiels for make request to api/combine
This commit is contained in:
@@ -6,9 +6,16 @@ import { Doc } from '../models/misc';
|
||||
export async function getDocs(
|
||||
sort = 'date',
|
||||
order = 'desc',
|
||||
pageNumber = 1,
|
||||
rowsPerPage = 5,
|
||||
): Promise<Doc[] | null> {
|
||||
try {
|
||||
const response = await userService.getDocs(sort, order);
|
||||
const response = await userService.getDocs(
|
||||
sort,
|
||||
order,
|
||||
pageNumber,
|
||||
rowsPerPage,
|
||||
);
|
||||
const data = await response.json();
|
||||
|
||||
const docs: Doc[] = [];
|
||||
|
||||
Reference in New Issue
Block a user