Sotaro KARASAWA 11 лет назад
Родитель
Сommit
6430754ea9
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      app.js
  2. 1 1
      lib/models/config.js

+ 1 - 1
app.js

@@ -85,7 +85,7 @@ configModel = require('./lib/models/config')(app);
 
 
 async.series([
 async.series([
   function (next) {
   function (next) {
-    configModel.getConfigArray(function(err, doc) {
+    configModel.loadAllConfig(function(err, doc) {
       app.set('config', doc);
       app.set('config', doc);
 
 
       return next();
       return next();

+ 1 - 1
lib/models/config.js

@@ -141,7 +141,7 @@ module.exports = function(app) {
   {
   {
   };
   };
 
 
-  configSchema.statics.getConfigArray = function(callback)
+  configSchema.statics.loadAllConfig = function(callback)
   {
   {
     var Config = this
     var Config = this
       , config = {};
       , config = {};