This commit is contained in:
2021-02-05 19:57:19 +01:00
parent 97aa4ae4d3
commit 047f2660f2
2 changed files with 14 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ const validateRestaurantData = function(requestBody){
const city = validator.isLength(requestBody.city, { max: 64 })
const adress = validator.isLength(requestBody.adress, { max: 64 })
const type = validator.isLength(requestBody.type, { max: 64 })
const description = true;
let description = true;
if(requestBody.description){
description = validator.isLength(requestBody.description, { max: 400 })
}