Skip to content

Commit

Permalink
fixed bug issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijah-trillionz committed Sep 10, 2022
1 parent 355f86d commit 28cfc9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/src/example
/.idea
/.idea
/data
.gitignore
nodemon.json
2 changes: 1 addition & 1 deletion src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class JSONDB {
this.validate = ajv.compile(schema);

// set options given
if (!options.writeSync) {
if (!options?.writeSync) {
this.dbOptions.writeSync = false;
}
});
Expand Down

0 comments on commit 28cfc9a

Please sign in to comment.