fix: 🐛 reorder Discount::make() params in SettingsController
This commit is contained in:
parent
379cff88c2
commit
696132eddc
1 changed files with 4 additions and 4 deletions
|
|
@ -90,11 +90,11 @@ class SettingsController extends Controller
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return Discount::make(
|
return Discount::make(
|
||||||
$picture,
|
|
||||||
Arr::get($coupon, 'valid_on'),
|
|
||||||
Arr::get($coupon, 'face_value'),
|
|
||||||
Arr::get($coupon, 'percentage'),
|
|
||||||
Arr::get($coupon, 'web_coupon_identifiant'),
|
Arr::get($coupon, 'web_coupon_identifiant'),
|
||||||
|
Arr::get($coupon, 'percentage'),
|
||||||
|
Arr::get($coupon, 'face_value'),
|
||||||
|
Arr::get($coupon, 'valid_on'),
|
||||||
|
$picture,
|
||||||
);
|
);
|
||||||
} catch (\RuntimeException | \TypeError) {
|
} catch (\RuntimeException | \TypeError) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue