|
@@ -255,11 +255,26 @@ export class Database extends SQLiteController {
|
|
|
|
|
|
|
|
if (!!line['_ParamKey']) {
|
|
if (!!line['_ParamKey']) {
|
|
|
const type = validateParamType(line['_ParamType']);
|
|
const type = validateParamType(line['_ParamType']);
|
|
|
- config.params.push({
|
|
|
|
|
- type,
|
|
|
|
|
- key: line['_ParamKey'],
|
|
|
|
|
- value: type === 'number' ? Number(line['_ParamValue']) : line['_ParamValue']
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ const key = line['_ParamKey'];
|
|
|
|
|
+ if (type === 'check') {
|
|
|
|
|
+ let checkParam = config.params.find(c => c.type === 'check');
|
|
|
|
|
+ if (!checkParam) {
|
|
|
|
|
+ config.params.push(
|
|
|
|
|
+ (checkParam = {
|
|
|
|
|
+ key: 'regexp',
|
|
|
|
|
+ type: 'check',
|
|
|
|
|
+ value: []
|
|
|
|
|
+ })
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ (checkParam.value as string[]).push(line['_ParamValue']);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ config.params.push({
|
|
|
|
|
+ type,
|
|
|
|
|
+ key,
|
|
|
|
|
+ value: type === 'number' ? Number(line['_ParamValue']) : line['_ParamValue']
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return res;
|
|
return res;
|