Commit cd92e6d1 by Beebuddy Builder

modify mongodb

1 parent 2c2a1bab
......@@ -15,11 +15,26 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var ConnectMongo = function ConnectMongo() {
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
var ConnectMongo =
/*#__PURE__*/
function () {
function ConnectMongo() {
_classCallCheck(this, ConnectMongo);
}
_createClass(ConnectMongo, [{
key: "initial",
value: function initial() {
dbActions.openConnection();
};
}
}]);
return ConnectMongo;
}();
var _default = ConnectMongo;
exports.default = _default;
\ No newline at end of file
......@@ -4,6 +4,10 @@ import * as dbActions from "./db_config/action";
class ConnectMongo {
constructor(){
}
initial(){
dbActions.openConnection();
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!