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"];