add count

This commit is contained in:
Valentin CZERYBA 2023-10-21 10:18:21 +02:00
parent 03ec97003e
commit 319ba75d43

View File

@ -30,8 +30,8 @@ for (var i=0; i<listQuery.length; i++){
instance.get("users/count", { withCredentials: true }).then(function(response){
var count = response.data / param["nbPages"];
var reste = response.data % param["nbPages"];
var count = response.data["count"] / param["nbPages"];
var reste = response.data["count"] % param["nbPages"];
var total = 0;
if(reste != 0){
total = Number.parseInt(count) + 1;