Skip to content

Commit 94225a8

Browse files
committed
связь с kafka
1 parent cdabde0 commit 94225a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

auth_backend/auth_method/outer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from abc import ABCMeta, abstractmethod
33
from typing import Any
44

5-
from event_schema.auth import UserLoginKey
5+
from event_schema.auth import UserInfo, UserLogin, UserLoginKey
66
from fastapi import Depends
77
from fastapi.background import BackgroundTasks
88
from fastapi.exceptions import HTTPException
@@ -217,6 +217,6 @@ async def _unlink(
217217
background_tasks.add_task(
218218
get_kafka_producer().produce,
219219
cls.settings.KAFKA_USER_LOGIN_TOPIC_NAME,
220-
UserLoginKey(user_id=user_id, auth_method=cls.get_name()),
221-
None,
220+
UserLoginKey(user_id=user_id),
221+
UserLogin(source=cls.get_name(), items=[UserInfo(category="", param="", value=None)]),
222222
)

0 commit comments

Comments
 (0)