|
|
@@ -18,12 +18,6 @@ module.exports = function(crowi) {
|
|
|
value: { type: String, required: true },
|
|
|
});
|
|
|
|
|
|
- function validateCrowi() {
|
|
|
- if (crowi == null) {
|
|
|
- throw new Error('"crowi" is null. Init Config model with "crowi" argument first.');
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* default values when GROWI is cleanly installed
|
|
|
*/
|
|
|
@@ -184,10 +178,6 @@ module.exports = function(crowi) {
|
|
|
return labels;
|
|
|
};
|
|
|
|
|
|
- configSchema.statics.updateConfigCache = function(ns, config) {
|
|
|
- validateCrowi();
|
|
|
- };
|
|
|
-
|
|
|
configSchema.statics.getLocalconfig = function() {
|
|
|
const env = process.env;
|
|
|
|