MariaDB user sync disabled in dev environment
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
17b178b6bf
commit
c3e480b2e7
|
@ -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']
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue