- altro aggiornamento restying

- Invio RIS aggiornato
- Eventi
- Home Page restyling
This commit is contained in:
Surya Paolo
2025-12-18 17:00:43 +01:00
parent 3d87c336de
commit 9a0cdec7bd
5 changed files with 75 additions and 2 deletions

View File

@@ -246,11 +246,19 @@ AccountSchema.statics.addtoSaldo = async function (myaccount, amount, mitt) {
myaccount.date_updated = new Date();
myaccountupdate.saldo = myaccount.saldo;
myaccountupdate.sent = myaccount.sent;
myaccountupdate.received = myaccount.received;
myaccountupdate.totTransato = myaccount.totTransato;
myaccountupdate.numtransactions = myaccount.numtransactions;
if (amount > 0) {
if (myaccountupdate.received === undefined) {
myaccountupdate.received = 0;
}
myaccountupdate.received += 1;
} else {
if (myaccountupdate.sent === undefined) {
myaccountupdate.sent = 0;
}
myaccountupdate.sent += 1;
}

View File

@@ -838,6 +838,7 @@ CircuitSchema.statics.sendCoins = async function (onlycheck, idapp, usernameOrig
paramstoupdate = {
totTransato: circuittable.totTransato,
totCircolante: circuittable.totCircolante,
numTransazioni: circuittable.numTransazioni,
};
await Circuit.updateOne({ _id: circuittable }, { $set: paramstoupdate });

View File

@@ -150,6 +150,9 @@ const MySingleElemSchema = {
parambool4: {
type: Boolean,
},
parambool5: {
type: Boolean,
},
number: {
type: Number,
},
@@ -236,6 +239,12 @@ const MySingleElemSchema = {
class4: {
type: String,
},
stiletit_str: {
type: String,
},
stiletit_icon: {
type: String,
},
styleadd: {
type: String,
},