- Add saldo to member's list
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user