fix if another language (undefined) not work telegram msg.
This commit is contained in:
@@ -178,6 +178,10 @@ const CircuitSchema = new Schema({
|
||||
transactionsEnabled: {
|
||||
type: Boolean,
|
||||
},
|
||||
status: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
});
|
||||
|
||||
CircuitSchema.pre('save', async function(next) {
|
||||
@@ -235,6 +239,7 @@ CircuitSchema.statics.getWhatToShow = function(idapp, username) {
|
||||
fido_scoperto_default: 1,
|
||||
deperimento: 1,
|
||||
transactionsEnabled: 1,
|
||||
status: 1,
|
||||
qta_max_default: 1,
|
||||
valuta_per_euro: 1,
|
||||
symbol: 1,
|
||||
@@ -307,6 +312,7 @@ CircuitSchema.statics.getWhatToShow_Unknown = function(idapp, username) {
|
||||
req_users: 1,
|
||||
refused_users: 1,
|
||||
transactionsEnabled: 1,
|
||||
status: 1,
|
||||
'mycities': 1,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user