fix no-exchange issue

This commit is contained in:
Josh Harvey 2017-05-10 23:05:19 +03:00
parent a60a4f8793
commit f23d17b357
7 changed files with 29 additions and 17 deletions

View file

@ -139,16 +139,18 @@ function save (config) {
.catch(() => db.none(sql, ['config', {config}, false]))
}
function configAddField (scope, fieldCode, value) {
function configAddField (scope, fieldCode, fieldType, fieldClass, value) {
return {
fieldLocator: {
fieldScope: {
crypto: scope.crypto,
machine: scope.machine
},
code: fieldCode
code: fieldCode,
fieldType,
fieldClass
},
fieldValue: {value}
fieldValue: {fieldType, value}
}
}