try to deploy

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-07-13 21:27:56 +08:00
parent bfc4b9fc67
commit b1805cfe4d
87 changed files with 798 additions and 718 deletions
+2 -2
View File
@@ -268,10 +268,10 @@ export const UserProvider = ({ children }) => {
// ─── GET /api/admin/users/:id/activity ────────────────────────────────────
const fetchUserActivity = useCallback(
async (userId, { page = 1, limit = 20, action = undefined } = {}) => {
async (userId, { page = 1, limit = 20, action = undefined, from = undefined, to = undefined } = {}) => {
setActivityLoading(true);
try {
const res = await api.get(`${BASE}/users/${userId}/activity`, { params: { page, limit, action } });
const res = await api.get(`${BASE}/users/${userId}/activity`, { params: { page, limit, action, from, to } });
const d = res.data?.data;
setActivity(d?.activities ?? []);
setActivityPagination({