mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: apply feedback
This commit is contained in:
parent
d4a6c26919
commit
37486150df
@ -19,13 +19,8 @@ export function isPatternList(patterns: Pattern[]) {
|
||||
if (!Array.isArray(patterns)) {
|
||||
return false;
|
||||
}
|
||||
patterns.every((pattern) => {
|
||||
const result = patternSchema.safeParse(pattern);
|
||||
if (!result.success) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return true;
|
||||
|
||||
return patterns.every((pattern) => patternSchema.safeParse(pattern).success);
|
||||
}
|
||||
|
||||
@ValidatorConstraint({ async: false })
|
||||
|
Loading…
Reference in New Issue
Block a user