* fix(chalice): fixed Math-operators validation
refactor(chalice): search for sessions that have events for heatmaps

* refactor(chalice): search for sessions that have at least 1 location event for heatmaps

* fix(chalice): fixed Math-operators validation
refactor(chalice): search for sessions that have events for heatmaps

* refactor(chalice): search for sessions that have at least 1 location event for heatmaps

* feat(chalice): autocomplete return top 10 with stats

* fix(chalice): fixed autocomplete top 10 meta-filters

* refactor(chalice): refactored logout
This commit is contained in:
Kraiem Taha Yassine 2024-09-06 17:40:57 +02:00 committed by GitHub
parent 687d12470a
commit d274e08f43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ def login_user(response: JSONResponse, data: schemas.UserLoginSchema = Body(...)
def logout_user(response: Response, context: schemas.CurrentContext = Depends(OR_context)):
users.logout(user_id=context.user_id)
response.delete_cookie(key="refreshToken", path=COOKIE_PATH)
response.delete_cookie(key="spotRefreshToken", path="/api/spot/refresh")
response.delete_cookie(key="spotRefreshToken", path=spot.COOKIE_PATH)
return {"data": "success"}

View file

@ -103,7 +103,7 @@ def login_user(response: JSONResponse, data: schemas.UserLoginSchema = Body(...)
def logout_user(response: Response, context: schemas.CurrentContext = Depends(OR_context)):
users.logout(user_id=context.user_id)
response.delete_cookie(key="refreshToken", path=COOKIE_PATH)
response.delete_cookie(key="spotRefreshToken", path="/api/spot/refresh")
response.delete_cookie(key="spotRefreshToken", path=spot.COOKIE_PATH)
return {"data": "success"}