Skip to content

Commit 6eb3177

Browse files
committed
1.0.0
1 parent 497aec8 commit 6eb3177

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dittorm",
3-
"version": "1.0.0-beta.0",
3+
"version": "1.0.0",
44
"description": "A Node.js ORM for MySQL, SQLite, PostgreSQL, MongoDB, GitHub and serverless service like Deta, InspireCloud, CloudBase, LeanCloud.",
55
"main": "dist/src/index.js",
66
"scripts": {

src/utils/model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function getConfigFromEnv(envs: NodeJS.ProcessEnv = {}) {
5353
database: envs.MONGO_DB,
5454
options: (function() {
5555
try {
56-
return JSON.parse(envs.MONGO_OPTIONS);
56+
return JSON.parse(envs.MONGO_OPTIONS || '{}');
5757
} catch(e) {
5858
return {};
5959
}

0 commit comments

Comments
 (0)