Skip to content

Commit

Permalink
fix: missing params
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 31, 2019
1 parent c252591 commit 9979160
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion plugins/memory/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ travis.yml
*.md
coverage/
jest.config.js
jestEnvironment.js
jestEnvironment.js
renovate.json
6 changes: 3 additions & 3 deletions plugins/memory/src/local-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class LocalMemory implements ILocalData {
config: Config;
locked: boolean;

constructor(config: ConfigMemory, logger: Logger) {
constructor(config: ConfigMemory, options: any) {
this.config = config;
this.limit = config.limit || DEFAULT_LIMIT;
this.logger = logger;
this.logger = options.logger;
this.data = this._createEmtpyDatabase();
this.data.secret = config.checkSecretKey(this.data.secret);
}
Expand Down Expand Up @@ -53,7 +53,7 @@ class LocalMemory implements ILocalData {
}

getPackageStorage(packageInfo: string) {
return new MemoryHandler(packageInfo, this.logger);
return new MemoryHandler(packageInfo, this.data.files, this.logger);
}

_createEmtpyDatabase(): LocalStorage {
Expand Down

0 comments on commit 9979160

Please sign in to comment.