Skip to content

Commit

Permalink
add room query
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsrs committed Jul 4, 2024
1 parent f9b0a7a commit 7da9afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion fakts/base_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class DeviceCodeChallengeRequest(BaseModel):


class ConfigurationRequest(BaseModel):

grant: enums.FaktsGrantKind
device_code: Optional[str] = None

Expand Down
6 changes: 3 additions & 3 deletions kammer/graphql/mutations/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@

@strawberry.input
class CreateRoomInput:
description: str | None
title: str | None
description: str | None = None
title: str | None = None


def create_room(info: Info, input: CreateRoomInput) -> types.Room:
creator = info.context.request.user

exp = models.Room.objects.create(
title=input.title or "Untited",
title=input.title or "Untitled",
description=input.description or "No description",
)

Expand Down

0 comments on commit 7da9afd

Please sign in to comment.