Compare commits
2 Commits
f5690366af
...
3fb959a2e9
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fb959a2e9 | |||
| a2c3885379 |
@ -18,6 +18,7 @@ class CurrentUser:
|
|||||||
is_bot: bool
|
is_bot: bool
|
||||||
user_id: str
|
user_id: str
|
||||||
session_id: str
|
session_id: str
|
||||||
|
client_type: str
|
||||||
permissions: List[str]
|
permissions: List[str]
|
||||||
|
|
||||||
async def _fetch_current_user(
|
async def _fetch_current_user(
|
||||||
@ -60,6 +61,7 @@ async def _fetch_current_user(
|
|||||||
is_bot=is_bot,
|
is_bot=is_bot,
|
||||||
user_id=data["user_id"],
|
user_id=data["user_id"],
|
||||||
session_id=data["session_id"],
|
session_id=data["session_id"],
|
||||||
|
client_type=data["client_type"],
|
||||||
permissions=data["permissions"]
|
permissions=data["permissions"]
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -129,6 +131,7 @@ async def fetch_user_for_sio(
|
|||||||
is_bot=is_bot,
|
is_bot=is_bot,
|
||||||
user_id=data["user_id"],
|
user_id=data["user_id"],
|
||||||
session_id=data["session_id"],
|
session_id=data["session_id"],
|
||||||
|
client_type=data["client_type"],
|
||||||
permissions=data["permissions"]
|
permissions=data["permissions"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "common-lib"
|
name = "common-lib"
|
||||||
version = "0.0.44"
|
version = "0.0.45"
|
||||||
description = "Библиотека общих компонентов для микросервисов yobble"
|
description = "Библиотека общих компонентов для микросервисов yobble"
|
||||||
authors = [{ name = "cheykrym", email = "you@example.com" }]
|
authors = [{ name = "cheykrym", email = "you@example.com" }]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user