- Fix CRM error curl
- Fix date in controller
This commit is contained in:
parent
02bb86d772
commit
482f814c7b
3 changed files with 4 additions and 4 deletions
|
|
@ -122,9 +122,9 @@ class ApiV1
|
|||
if (!curl_errno($curl)) {
|
||||
$http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
if (!in_array($http_code, [200, 201]))
|
||||
return (object) ['status' => 'KO', 'code' => 500, 'message' => 'Connection to API failed'];
|
||||
return (object) ['status' => 'KO', 'code' => 500, 'message' => 'Connection to API failed - Code HTTP : '. $http_code];
|
||||
} else {
|
||||
return (object) ['status' => 'KO', 'code' => 500, 'message' => 'Connection to API failed'];
|
||||
return (object) ['status' => 'KO', 'code' => 500, 'message' => 'Connection to API failed : '. curl_error($curl)];
|
||||
}
|
||||
|
||||
curl_close($curl);
|
||||
|
|
|
|||
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
2
resources/js/app.js
vendored
2
resources/js/app.js
vendored
|
|
@ -5,7 +5,7 @@ window.Vue = require('vue');
|
|||
|
||||
Vue.filter('formatDate', function(value) {
|
||||
if (value) {
|
||||
return moment(String(value)).format('MM/DD/YYYY H:mm')
|
||||
return moment(String(value)).format('DD/MM/YYYY H:mm')
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue