Skip to content

Commit

Permalink
Merge pull request #2 from interledgerjs/bug/delete-prefix
Browse files Browse the repository at this point in the history
bug: remove custom property from opts
  • Loading branch information
adrianhopebailie committed Jul 26, 2018
2 parents 2ecafda + 5bbcefe commit 8fc77e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Expand Up @@ -11,7 +11,9 @@ class RedisStore {

constructor (opts: StoreOptions) {
this._prefix = 'ilp:' + (opts.prefix || '') + ':'
this._redis = new Redis(Object.assign({ keyPrefix: this._prefix }, opts))
const redisOptions = Object.assign({ keyPrefix: this._prefix }, opts)
delete(redisOptions.prefix)
this._redis = new Redis(redisOptions)
}

async get (key: string): Promise<string | undefined> {
Expand Down

0 comments on commit 8fc77e3

Please sign in to comment.