diff --git a/cache.js b/cache.js index bffda52..59f6a97 100644 --- a/cache.js +++ b/cache.js @@ -82,7 +82,7 @@ function cache(options) { var val = msg.val if (typeof val !== 'number') { - return this.fail('op_failed_nan', { op: op, key: key, val: oldVal }) + return this.fail('op_failed_nan', { op: kind, key: key, val: oldVal }) } var oldVal = cache.get(key) diff --git a/package.json b/package.json index 79a4604..195f53c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@seneca/cache", - "version": "0.1.1", + "version": "0.1.2", "description": "In-memory caching plugin for seneca", "main": "cache.js", "scripts": {