8000 Fix loading connection. · javascriptit/examples-1@963d0bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 963d0bb

Browse files
committed
Fix loading connection.
1 parent c4aa527 commit 963d0bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mongodb/definitions/database.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
var MC = require('mongodb').MongoClient;
22
var DB = null;
33

4+
F.wait('database');
5+
46
MC.connect(CONFIG('database'), function(err, db) {
57
if (err)
68
throw err;
79
DB = db;
10+
F.wait('database');
811
});
912

1013
F.database = function(collection) {

0 commit comments

Comments
 (0)
0