Skip to content

Commit

Permalink
fix(Config): put proper default for ConfigWithAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Aug 8, 2022
1 parent c01e12b commit dbb3b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/JsonDBConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ConfigWithAdapter implements JsonDBConfig {
readonly separator: string;


constructor(adapter: IAdapter<any>, humanReadable: boolean, saveOnPush: boolean, separator: string) {
constructor(adapter: IAdapter<any>, saveOnPush: boolean = true, separator: string = '/') {
this.adapter = adapter;
this.saveOnPush = saveOnPush;
this.separator = separator;
Expand Down

0 comments on commit dbb3b7b

Please sign in to comment.