debrief-mail-22-02-09

This commit is contained in:
Sebastien Hattry 2022-02-11 16:11:28 +01:00
parent bc3ede26a9
commit eb4cdd84e0
3 changed files with 13 additions and 8 deletions

View file

@ -250,11 +250,10 @@ class EnterCodeController extends Controller
$mesBR->updateContact($crmUser->user);
$result = $mesBR->updatePanier($crmUser->user, $coupon);
if ($result["status"] === "OK") {
$reduction = new Reduction();
$reduction->participation_id = $participation->id;
$reduction->link = $result["link"];
$reduction->verification = $result["verif"];
$reduction->basket_id = $result["basketId"];
$reduction = new Reduction();
$reduction->link = $result["link"];
$reduction->verification = $result["verif"];
$reduction->basket_id = $result["basketId"];
$reduction->save();
$participation->reduction_id = $reduction->id;
$participation->save();

5
public/js/app.js vendored
View file

@ -9317,7 +9317,10 @@ try {
window.axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
window.axios.defaults.headers.common = {
'X-Requested-With': 'XMLHttpRequest',
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content')
};
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting

View file

@ -11,7 +11,7 @@ try {
window.$ = window.jQuery = require('jquery');
require('bootstrap');
} catch (e) {}
} catch (e) { }
/**
* We'll load the axios HTTP library which allows us to easily issue requests
@ -21,7 +21,10 @@ try {
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
window.axios.defaults.headers.common = {
'X-Requested-With': 'XMLHttpRequest',
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content')
};
/**
* Echo exposes an expressive API for subscribing to channels and listening