update tanstak-table fetch settings

This commit is contained in:
smanylov
2026-01-09 12:35:48 +07:00
parent 5541d76574
commit a8ae39751e
2 changed files with 11 additions and 8 deletions
+3 -4
View File
@@ -1,11 +1,10 @@
'use server'
import { NextRequest, NextResponse } from 'next/server';
import { getSessionData } from '@/app/actions/session';
import { API_BASE_URL } from '@/app/actions/definitions';
export async function getUserFilesData() {
export async function getUserFilesData(page: number, pageSize: number) {
const token = await getSessionData('token');
try {
@@ -16,8 +15,8 @@ export async function getUserFilesData() {
msg_id: 20005,
message_body: {
action: 'user_files',
page: 1,
page_size: 20,
page: page,
page_size: pageSize,
token: token
}
}),