- Add saldo to member's list

This commit is contained in:
paoloar77
2022-11-06 13:39:01 +01:00
parent 7c46487340
commit 1ac27a7e1a
7 changed files with 285 additions and 7 deletions

View File

@@ -31,7 +31,6 @@ async function getCircuitRecAdminsInfo(idapp, data) {
router.post('/load', authenticate, async (req, res) => {
const idapp = req.body.idapp;
const path = req.body.path;
const circuitId = req.body.circuitId;
const usernameOrig = req.user.username;
try {
@@ -48,7 +47,7 @@ router.post('/load', authenticate, async (req, res) => {
const whatshowUsers = await User.getWhatToShow_IfFriends(idapp, req.user.username);
let users_in_circuit = [];
/*let users_in_circuit = [];
if (data) {
users_in_circuit = await User.find(
@@ -61,6 +60,9 @@ router.post('/load', authenticate, async (req, res) => {
whatshowUsers,
).lean();
}
*/
const users_in_circuit = await Circuit.getUsersSingleCircuit(idapp, req.user.username, data.name, data._id);
data = await getCircuitRecAdminsInfo(idapp, data);