Skip to content

Commit

Permalink
revert: EVEREST-1578 (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianabirs authored Oct 30, 2024
1 parent cadb28a commit 185944e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,6 @@ export const resourcesFormSchema = (passthrough?: boolean) => {
path: [DbWizardFormFields.shardNr],
});
}
if (+intNrNodes > 1 && intShardNr < 2) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: Messages.sharding.minForNodes,
path: [DbWizardFormFields.shardNr],
});
}
}

if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export const Messages = {
sharding: {
invalid: 'Please fill in valid values for sharding',
min: (val: number) => `The value cannot be less than ${val}`,
minForNodes: 'The minimum number of shards should be 2',
max: (val: number) => `The value cannot be more than ${val}`,
odd: 'The value cannot be even',
numberOfShards: 'Nº of shards',
Expand Down

0 comments on commit 185944e

Please sign in to comment.