Session Set When Currency Mismatch

This commit is contained in:
devansh bawari 2020-10-06 20:26:42 +05:30
parent bee024ad2f
commit e1ee0cb499
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ class ChannelController extends Controller
$channel = $this->channelRepository->update($data, $id);
if ($channel->base_currency->code !== session()->get('currency')) {
session()->put('currency', $channel->base_currency->code);
}
Event::dispatch('core.channel.update.after', $channel);
session()->flash('success', trans('admin::app.settings.channels.update-success'));