Conti Comunitari e Collettivi
This commit is contained in:
@@ -72,7 +72,7 @@ router.post('/load', authenticate, async (req, res) => {
|
||||
}
|
||||
|
||||
if (data) {
|
||||
data.account = await Account.getAccountByUsernameAndCircuitId(idapp, '', data._id, false, data.path);
|
||||
data.account = await Account.getAccountByUsernameAndCircuitId(idapp, '', data._id, false, '', data.path);
|
||||
}
|
||||
|
||||
res.send({ circuit: data, users_in_circuit });
|
||||
|
||||
@@ -1097,7 +1097,7 @@ async function eseguiDbOp(idapp, mydata, locale, req, res) {
|
||||
|
||||
for (const mycirc of allcirc) {
|
||||
// Il Conto Comunitario prende il nome del circuito !
|
||||
await Account.createAccount(idapp, '', mycirc.name, mycirc.path);
|
||||
await Account.createAccount(idapp, '', mycirc.name, '', mycirc.path);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user