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,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1364,7 +1364,7 @@ function getstr(lang, key, param1) {
|
||||
}
|
||||
}
|
||||
|
||||
if (mystr === '')
|
||||
if (!mystr || mystr === '')
|
||||
mystr = txt[key];
|
||||
|
||||
if (!!param1) {
|
||||
|
||||
@@ -494,4 +494,9 @@ module.exports = {
|
||||
}
|
||||
],
|
||||
|
||||
CIRCUIT_STATUS: {
|
||||
FASE1_CREAZIONE_GRUPPO: 0,
|
||||
FASE2_MONETA_ABILITATA: 1,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user