Skip to content

Commit

Permalink
feat(config): make us of mergeAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Sep 12, 2016
1 parent 7bcd7f0 commit 1955079
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/LimitingInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class LimitingInterceptor extends Interceptor {
}

static get configurationAttributes() {
return Object.assign(mat.createAttributes({
return mat.mergeAttributes(mat.createAttributes({
limits: {
default: [{
count: 10
Expand Down
2 changes: 1 addition & 1 deletion lib/TimeoutInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Interceptor = require('./interceptor').Interceptor,
class TimeoutInterceptor extends Interceptor {

static get configurationAttributes() {
return Object.assign(mat.createAttributes({
return mat.mergeAttributes(mat.createAttributes({
timeout: {
description: 'request timeout',
default: 1,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"homepage": "https://github.com/Kronos-Integration/kronos-interceptor#readme",
"dependencies": {
"model-attributes": "^1.7.1"
"model-attributes": "^1.7.2"
},
"devDependencies": {
"chai": "3.5.0",
Expand Down

0 comments on commit 1955079

Please sign in to comment.