Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mirera-db
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mirera
mirera-db
Commits
b2eb0b96
Commit
b2eb0b96
authored
Aug 07, 2019
by
Никита Бесшапошников
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected defines import
parent
061089ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
index.js
index.js
+1
-2
No files found.
index.js
View file @
b2eb0b96
...
...
@@ -11,8 +11,6 @@ mongoose.Promise = global.Promise;
module
.
exports
.
connection
=
null
;
module
.
exports
.
defines
=
require
(
'
./defines
'
)
module
.
exports
=
(
connectionUri
,
relaxed
)
=>
{
if
(
relaxed
===
undefined
)
mongoose
.
relaxed
=
true
;
...
...
@@ -27,6 +25,7 @@ module.exports = (connectionUri, relaxed) => {
return
mongoose
.
createConnection
(
connectionUri
,
{
useNewUrlParser
:
true
,
poolSize
:
25
})
.
then
(
connection
=>
{
module
.
exports
=
{};
module
.
exports
.
defines
=
require
(
'
./defines
'
)
mongoose
.
connection
=
connection
;
module
.
exports
.
connection
=
connection
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment