sealcode / sealious

An extensible, declarative node framework
25 stars 2 forks source link

Sealious.start() nigdy się nie resolve'uje #157

Closed adwydman closed 9 years ago

adwydman commented 9 years ago

Prawdopodobna przyczyna w datastore.mongo.js:

datastore_mongo.start = function(){
        var config = datastore_mongo.configuration;
        if(config.embedded){
            return new Promise(function(resolve, reject){
                db = new TingoDB.Db('.', {});
                resolve();
            })
        }else{
            var mongo_client = new MongoClient(new Server(config.host, config.port));
            return new Promise(function(resolve, reject){
                mongo_client.open(function(err, mongoClient){
                    db = mongoClient.db(config.db_name);
                    resolve();
                })          
            })          
        }
    }