add transactionsEnabled : enable the circuit to the transactions

This commit is contained in:
Paolo Arena
2022-09-22 11:06:18 +02:00
parent 765516cd4f
commit 5cfc0e9413
2 changed files with 11 additions and 11 deletions

View File

@@ -175,6 +175,9 @@ const CircuitSchema = new Schema({
type: Boolean,
default: false,
},
transactionsEnabled: {
type: Boolean,
},
});
CircuitSchema.pre('save', async function(next) {
@@ -230,6 +233,8 @@ CircuitSchema.statics.getWhatToShow = function(idapp, username) {
date_updated: 1,
nome_valuta: 1,
fido_scoperto_default: 1,
deperimento: 1,
transactionsEnabled: 1,
qta_max_default: 1,
valuta_per_euro: 1,
symbol: 1,