Skip to content

Commit edd803b

Browse files
committed
fix(*): fix
1 parent 7c755f3 commit edd803b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.10.0
1+
24.12.0

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ 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+
acc.fields[k].unique = true;
121122
if (undefined === value && undefined === updateValue) {
122123
acc.validators[k].push({type: '@unique', config: {type: schema.name, index: k}});
123124
}
124-
acc.fields[k].unique = true;
125125
}
126126
(undefined !== value) && (acc.values[k] = value);
127127
(undefined !== updateValue) && (acc.updateValues[k] = updateValue);

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-
prefix:
10-
type: string
11-
default: ''
129
unique:
1310
type: boolean
1411
default: false
12+
prefix:
13+
type: string
14+
default: ''
1515

1616
attributes:
1717
code:

0 commit comments

Comments
 (0)