mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
fix: admin API key page fixes (#1360)
This commit is contained in:
1 parent
6064bdf0e7
commit
097fa9d9ce
13 files changed
+188
-126
No files matched your search
@@ -27,13 +27,8 @@ export class InputValidationError extends BadRequestError {
|
||||
return new InputValidationError([{path, message}]);
|
||||
}
|
||||
|
||||
static createMultiple(
|
||||
errors: Array<{
|
||||
field: string;
|
||||
message: string;
|
||||
}>,
|
||||
): InputValidationError {
|
||||
return new InputValidationError(errors.map((e) => ({path: e.field, message: e.message})));
|
||||
static createMultiple(errors: Array<ValidationError>): InputValidationError {
|
||||
return new InputValidationError(errors);
|
||||
}
|
||||
|
||||
static fromCode(path: string, code: ValidationErrorCode, variables?: Record<string, unknown>): InputValidationError {
|
||||
|
||||
Reference in new issue
Block a user