Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
BeebuddyUtil
/
dma-common-backend
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd92e6d1
authored
Oct 15, 2020
by
Beebuddy Builder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify mongodb
1 parent
2c2a1bab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
dist/src/utils/mongodb/connect_db.js
src/utils/mongodb/connect_db.js
dist/src/utils/mongodb/connect_db.js
View file @
cd92e6d
...
...
@@ -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
()
{
_classCallCheck
(
this
,
ConnectMongo
);
dbActions
.
openConnection
();
};
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
src/utils/mongodb/connect_db.js
View file @
cd92e6d
...
...
@@ -4,6 +4,10 @@ import * as dbActions from "./db_config/action";
class
ConnectMongo
{
constructor
(){
}
initial
(){
dbActions
.
openConnection
();
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment