Skip to content

Commit ee17a12

Browse files
committed
fix(*): fix
1 parent a93b02b commit ee17a12

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/plugin-js-lambda-microlib/src/SchemaParser.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ export default class SchemaParser {
118118
(validators && 0 < validators.length) && (acc.validators[k] = [...acc.validators[k], ...validators]);
119119
(authorizers && 0 < authorizers.length) && (acc.authorizers[k] = [...(acc.authorizers[k] || []), ...authorizers]);
120120
if (unique) {
121-
(undefined === value && undefined === updateValue) && (acc.validators[k].push({type: '@unique', config: {type: schema.name, index: k}}));
121+
if (undefined === value && undefined === updateValue) {
122+
acc.validators[k].push({type: '@unique', config: {type: schema.name, index: k}});
123+
}
122124
acc.fields[k].unique = true;
123125
}
124126
(undefined !== value) && (acc.values[k] = value);

packages/plugin-registry-base/assets/code/microservice/type-mixin/code-generated.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ inputs:
66
indexed:
77
type: boolean
88
default: false
9-
unique:
10-
type: boolean
11-
default: false
129
prefix:
1310
type: string
1411
default: ''
12+
unique:
13+
type: boolean
14+
default: false
1515

1616
attributes:
1717
code:

0 commit comments

Comments
 (0)