This commit is contained in:
Nweni
2019-12-02 19:11:52 +06:30
parent a59c662188
commit 6ad2f320df
3 changed files with 3 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ class HomeController < ApplicationController
def destroy
# clear in employee session
Employee.logout(@shop,session[:session_token])
Employee.logout(current_shop,session[:session_token])
session[:session_token] = nil
# redirect_to root_path
render :json => {:status=> "Success", :url => root_path }.to_json