Bugfixing

This commit is contained in:
Michal Kváček
2024-01-18 06:53:01 +01:00
parent dabed327dd
commit 3c757df7f1
4 changed files with 5 additions and 5 deletions
@@ -80,7 +80,7 @@ class PhotoMutationResolver(BaseMutationResolver):
async with get_session() as db:
photo = await self._get_one(db, id, created_by_id=user_id)
flight_id = photo.flight_id
filename = photo.filename
filename = photo.filename+"."+photo.filename_extension
path = get_photo_basepath(flight_id)
return PhotoDetailInfo(
@@ -49,7 +49,7 @@ class CreateEventInput(BaseGraphqlInputType):
pass
@strawberry_sqlalchemy_input(model=models.Event, exclude_fields=["id"])
@strawberry_sqlalchemy_input(model=models.Event, exclude_fields=["id"], all_optional=True)
class EditEventInput(BaseGraphqlInputType):
pass