- Fixed pagination not refreshing the data...

- Start creating single page of an Event
This commit is contained in:
Paolo Arena
2019-11-06 22:29:29 +01:00
parent a54839e128
commit 0d776589f0
6 changed files with 50 additions and 8 deletions

View File

@@ -40,10 +40,11 @@ SettingsSchema.statics.executeQueryTable = function (idapp, params) {
SettingsSchema.statics.getValDbSettings = function (idapp, key) {
return Settings.findOne({ idapp, key })
.then((myrec) => {
console.log('getValDbSettings', myrec, 'idapp', idapp);
if (myrec) {
if (myrec.type === this.FieldType.date)
if (myrec.type === tools.FieldType.date)
return myrec.value_date;
if (myrec.type === this.FieldType.number)
if (myrec.type === tools.FieldType.number)
return myrec.value_num;
else
return myrec.value_str;
@@ -52,6 +53,7 @@ SettingsSchema.statics.getValDbSettings = function (idapp, key) {
}
}).catch((err) => {
console.error('getValDbSettings', err);
return null;
});