mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 11:53:49 +00:00
refactor: fixes to custom field
This commit is contained in:
@@ -11,7 +11,7 @@ export const validateCustomField = [
|
||||
.custom((value) => {
|
||||
return isAlphanumericWithSpace(value);
|
||||
}),
|
||||
body('type').isIn(['string', 'image']),
|
||||
body('type').isIn(['text', 'image']),
|
||||
body('colour').isString().trim(),
|
||||
|
||||
requestValidationFunction,
|
||||
@@ -26,7 +26,7 @@ export const validateEditCustomField = [
|
||||
.custom((value) => {
|
||||
return isAlphanumericWithSpace(value);
|
||||
}),
|
||||
body('type').isIn(['string', 'image']),
|
||||
body('type').isIn(['text', 'image']),
|
||||
body('colour').isString().trim(),
|
||||
|
||||
requestValidationFunction,
|
||||
|
||||
Reference in New Issue
Block a user