Edit get avatar

This commit is contained in:
2026-01-26 13:25:18 +03:00
parent 1dce2c7b0c
commit dd05e7f5c7
4 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ class UserService:
@classmethod
async def upload_avatar(cls, user: UserModel, avatar: UploadFile) -> User:
async with async_session_maker() as session:
allowed_types = ["image/jpeg", "image/png", "image/gif"]
allowed_types = ["image/jpeg", "image/png"]
if not avatar.content_type in allowed_types:
log.warning("Using not allowed type photo", extra={"user_id": user.id})