Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed May 4, 2023
1 parent 497aec8 commit 6eb3177
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dittorm",
"version": "1.0.0-beta.0",
"version": "1.0.0",
"description": "A Node.js ORM for MySQL, SQLite, PostgreSQL, MongoDB, GitHub and serverless service like Deta, InspireCloud, CloudBase, LeanCloud.",
"main": "dist/src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function getConfigFromEnv(envs: NodeJS.ProcessEnv = {}) {
database: envs.MONGO_DB,
options: (function() {
try {
return JSON.parse(envs.MONGO_OPTIONS);
return JSON.parse(envs.MONGO_OPTIONS || '{}');
} catch(e) {
return {};
}
Expand Down

0 comments on commit 6eb3177

Please sign in to comment.