From acd1b36eb0ae878ab2b8cd4d3ec8fddf004efb95 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 21 Oct 2023 21:42:01 +0200 Subject: [PATCH] change param --- web/js/users.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/js/users.js b/web/js/users.js index c6aff94..1f697ca 100644 --- a/web/js/users.js +++ b/web/js/users.js @@ -2,7 +2,7 @@ checkToken(); signOut(); var param = {} -param["nbPages"] = 20; +param["limit"] = 20; var listSearch = [ "email", "uuid", "search"]; for(var i=0; i 1){ document.getElementById("page").classList.remove("hidden"); - var pageCurrent = getQuery("page"); + var pageCurrent = getQuery("skip"); var page = 1; if(pageCurrent.length > 0){ page = Number.parseInt(pageCurrent); @@ -68,11 +68,11 @@ instance.get("users/count", { withCredentials: true }).then(function(response){ }); -param["page"] = 0; -var pageCurrent = getQuery("page"); +param["skip"] = 0; +var pageCurrent = getQuery("skip"); if (pageCurrent.length > 0){ - param["page"] = Number.parseInt(pageCurrent); - param["page"] = param["page"] - 1; + param["skip"] = Number.parseInt(pageCurrent); + param["skip"] = param["skip"] - 1; } var listQuery = ["search", "uuid", "roles", "status", "email"];