Bugfixing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user