3638-export_database #899

Merged
joan merged 17 commits from 3638-export_database into dev 2022-03-23 10:43:17 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 7aa6601ec1 - Show all commits

View File

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