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 ec7563ea
authored
Oct 15, 2020
by
Beebuddy Builder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update connnection mongo
1 parent
648dafd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
dist/src/utils/mongodb/connect_db.js
src/utils/mongodb/connect_db.js
dist/src/utils/mongodb/connect_db.js
View file @
ec7563e
...
@@ -19,22 +19,28 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
...
@@ -19,22 +19,28 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function
_createClass
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
_defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
_defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
}
function
_createClass
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
_defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
_defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
}
var
ConnectMongo
=
var
_
ConnectMongo
=
/*#__PURE__*/
/*#__PURE__*/
function
()
{
function
()
{
function
ConnectMongo
()
{
function
_
ConnectMongo
()
{
_classCallCheck
(
this
,
ConnectMongo
);
_classCallCheck
(
this
,
_
ConnectMongo
);
}
}
_createClass
(
ConnectMongo
,
[{
_createClass
(
_
ConnectMongo
,
[{
key
:
"initial"
,
key
:
"initial"
,
value
:
function
initial
()
{
value
:
function
initial
()
{
dbActions
.
openConnection
();
dbActions
.
openConnection
();
}
}
},
{
key
:
"getDB"
,
value
:
function
getDB
()
{
return
dbActions
;
}
}]);
}]);
return
ConnectMongo
;
return
_
ConnectMongo
;
}();
}();
var
ConnectMongo
=
new
_ConnectMongo
();
var
_default
=
ConnectMongo
;
var
_default
=
ConnectMongo
;
exports
.
default
=
_default
;
exports
.
default
=
_default
;
\ No newline at end of file
src/utils/mongodb/connect_db.js
View file @
ec7563e
import
COLLECTION
from
"./collections"
;
import
COLLECTION
from
"./collections"
;
import
*
as
dbActions
from
"./db_config/action"
;
import
*
as
dbActions
from
"./db_config/action"
;
class
ConnectMongo
{
class
_
ConnectMongo
{
constructor
(){
constructor
(){
...
@@ -10,7 +10,10 @@ class ConnectMongo {
...
@@ -10,7 +10,10 @@ class ConnectMongo {
initial
(){
initial
(){
dbActions
.
openConnection
();
dbActions
.
openConnection
();
}
}
getDB
(){
return
dbActions
;
}
}
}
const
ConnectMongo
=
new
_ConnectMongo
();
export
default
ConnectMongo
;
export
default
ConnectMongo
;
\ No newline at end of file
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