+ bin, db, insagram, feed on main page
This commit is contained in:
1 parent
09412f288f
commit
0d6cf42c7f
18 files changed
+449
-17
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Created by tmshv on 22/11/14.
|
||||
*/
|
||||
|
||||
var mongoose = require("mongoose");
|
||||
var Promise = require("promise");
|
||||
|
||||
module.exports = {
|
||||
init: function (options) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
mongoose.connect(options.uri, function (error) {
|
||||
if (error) return reject(error);
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user