fix: s3 update

This commit is contained in:
2026-05-17 14:46:57 +03:00
parent e4369df0d8
commit 6f6d10567e
2 changed files with 5 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ from fastapi.responses import ORJSONResponse
from starlette import status
from src.application.commands import SetPhoneCommand, SetAvatarCommand
from src.application.domain.dto import AuthContext
from src.presentation.decorators import require_access_token
from src.presentation.decorators import require_access_token, csrf_protect
from src.presentation.dependencies import (
get_set_avatar_command,
get_set_phone_command,
@@ -46,6 +46,7 @@ _SET_AVATAR_ERROR_RESPONSES: dict[int, dict[str, object]] = {
@account_settings_router.patch(path='/phone', response_class=ORJSONResponse, status_code=status.HTTP_200_OK)
@csrf_protect()
async def set_phone(
request: Request,
body: SetPhoneRequest,
@@ -70,6 +71,7 @@ async def set_phone(
),
responses=_SET_AVATAR_ERROR_RESPONSES,
)
@csrf_protect()
async def set_avatar(
request: Request,
body: SetAvatarRequest,