- altro aggiornamento restying
- Invio RIS aggiornato - Eventi - Home Page restyling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user