feat: удаление target chan только через telegram
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import uuid
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import Depends
|
||||
@@ -19,16 +18,3 @@ async def get_user_target_chans(
|
||||
)
|
||||
|
||||
return await deps.get_usecase().get_user_target_chans(input=input)
|
||||
|
||||
|
||||
@target_channels_router.delete('/{channel_id}')
|
||||
async def disconnect_target_chan(
|
||||
channel_id: uuid.UUID,
|
||||
current_user: Annotated[JWTPayload, Depends(deps.get_current_user)],
|
||||
) -> None:
|
||||
input = dto.DisconnectTargetChanInput(
|
||||
channel_id=channel_id,
|
||||
user_id=current_user.user_id,
|
||||
)
|
||||
|
||||
await deps.get_usecase().disconnect_target_chan(input=input)
|
||||
|
||||
Reference in New Issue
Block a user