Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 3638-export_database

This commit is contained in:
Vicent Llopis 2022-02-25 07:52:22 +01:00
commit 7aa6601ec1
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,10 @@
module.exports = Self => { module.exports = Self => {
Self.getSynchronizer = async function() { Self.getSynchronizer = async function() {
let NODE_ENV = process.env.NODE_ENV;
if (!NODE_ENV || NODE_ENV == 'development')
return null;
return await Self.findOne({ return await Self.findOne({
fields: ['id', 'rolePrefix', 'userPrefix', 'userHost'] fields: ['id', 'rolePrefix', 'userPrefix', 'userHost']
}); });