mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix validators order
This commit is contained in:
parent
9cc122177d
commit
be7ec2d3e7
|
@ -17,7 +17,6 @@ import {
|
|||
import {
|
||||
IDeferredPromise,
|
||||
} from 'n8n-core';
|
||||
|
||||
import * as PCancelable from 'p-cancelable';
|
||||
import { Repository } from 'typeorm';
|
||||
|
||||
|
|
|
@ -749,8 +749,8 @@ class App {
|
|||
TagHelpers.validateRequestBody(req.body);
|
||||
|
||||
const { name } = req.body;
|
||||
TagHelpers.validateLength(name);
|
||||
await TagHelpers.validateName(name);
|
||||
TagHelpers.validateLength(name);
|
||||
|
||||
const newTag: ITagBase = {
|
||||
name,
|
||||
|
@ -776,8 +776,8 @@ class App {
|
|||
TagHelpers.validateRequestBody(req.body);
|
||||
|
||||
const { name } = req.body;
|
||||
TagHelpers.validateLength(name);
|
||||
await TagHelpers.validateName(name);
|
||||
TagHelpers.validateLength(name);
|
||||
|
||||
const id = Number(req.params.id);
|
||||
await TagHelpers.validateId(id);
|
||||
|
|
Loading…
Reference in a new issue