@@ -126,16 +126,24 @@ module.exports = {
126126 ) ,
127127 VALIDATOR . integerValidator (
128128 "body" ,
129- "application.accommodation.travel" ,
129+ "application.accommodation.travel.amount " ,
130130 true ,
131- 0 ,
132- 100
131+ 0
132+ ) ,
133+ VALIDATOR . stringValidator (
134+ "body" ,
135+ "application.accommodation.travel.reason" ,
136+ true
133137 ) ,
134138 VALIDATOR . mongoIdValidator ( "body" , "application.team" , true ) ,
135- VALIDATOR . stringValidator ( "body" , "application.location.timeZone" , true ) ,
139+ VALIDATOR . stringValidator (
140+ "body" ,
141+ "application.location.timeZone" ,
142+ true
143+ ) ,
136144 VALIDATOR . stringValidator ( "body" , "application.location.country" , true ) ,
137145 VALIDATOR . stringValidator ( "body" , "application.location.city" , true ) ,
138- VALIDATOR . mongoIdValidator ( "body" , "teamId" , true ) ,
146+ VALIDATOR . mongoIdValidator ( "body" , "teamId" , true )
139147 ] ,
140148
141149 updateConfirmationValidator : [
@@ -257,15 +265,23 @@ module.exports = {
257265 ) ,
258266 VALIDATOR . integerValidator (
259267 "body" ,
260- "application.accommodation.travel" ,
268+ "application.accommodation.travel.amount " ,
261269 true ,
262- 0 ,
263- 100
270+ 0
271+ ) ,
272+ VALIDATOR . stringValidator (
273+ "body" ,
274+ "application.accommodation.travel.reason" ,
275+ true
264276 ) ,
265277 VALIDATOR . mongoIdValidator ( "body" , "application.team" , true ) ,
266- VALIDATOR . stringValidator ( "body" , "application.location.timeZone" , true ) ,
278+ VALIDATOR . stringValidator (
279+ "body" ,
280+ "application.location.timeZone" ,
281+ true
282+ ) ,
267283 VALIDATOR . stringValidator ( "body" , "application.location.country" , true ) ,
268- VALIDATOR . stringValidator ( "body" , "application.location.city" , true ) ,
284+ VALIDATOR . stringValidator ( "body" , "application.location.city" , true )
269285 ] ,
270286 updateStatusValidator : [
271287 VALIDATOR . enumValidator (
0 commit comments