payservedb 4.4.1 → 4.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/models/customer.js +3 -0
package/index.js
CHANGED
|
@@ -18,7 +18,7 @@ async function connectToMongoDB(dbName, secured, username, password, url, port)
|
|
|
18
18
|
console.log('Connected to MongoDB');
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
|
-
const url_ = `${username}:${password}@${url}
|
|
21
|
+
const url_ = `${username}:${password}@${url}:${port}`;
|
|
22
22
|
const source = '?authSource=admin'
|
|
23
23
|
const connectionString = `mongodb://${url_}/${dbName}${source}`;
|
|
24
24
|
await mongoose.connect(connectionString, {
|
package/package.json
CHANGED