Skip to content

Commit 22dbee8

Browse files
author
LDFOUR\luisd
committed
rollback change
1 parent 5904f7c commit 22dbee8

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

app/Http/Controllers/WhatNowController.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -690,22 +690,22 @@ public function putById($id)
690690
]);
691691
}
692692

693-
// try {
694-
// $this->validate($this->request, [
695-
// 'countryCode' => 'alpha|size:3',
696-
// 'eventType' => 'string|max:50',
697-
// 'regionName' => 'nullable|string',
698-
// 'translations' => 'array',
699-
// 'translations.*.webUrl' => 'nullable|string',
700-
// 'translations.*.lang' => 'alpha|size:2',
701-
// 'translations.*.title' => 'string',
702-
// 'translations.*.description' => 'string',
703-
// ]);
704-
// } catch (ValidationException $e) {
705-
// Log::info($e->getMessage());
706-
707-
// return $e->getResponse();
708-
// }
693+
try {
694+
$this->validate($this->request, [
695+
'countryCode' => 'alpha|size:3',
696+
'eventType' => 'string|max:50',
697+
'regionName' => 'nullable|string',
698+
'translations' => 'array',
699+
'translations.*.webUrl' => 'nullable|string',
700+
'translations.*.lang' => 'alpha|size:2',
701+
'translations.*.title' => 'string',
702+
'translations.*.description' => 'string',
703+
]);
704+
} catch (ValidationException $e) {
705+
Log::info($e->getMessage());
706+
707+
return $e->getResponse();
708+
}
709709

710710
try {
711711
$org = $this->orgRepo->findByCountryCode($this->request->input('countryCode'));

0 commit comments

Comments
 (0)