Skip to content

Commit

Permalink
added stash
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnnsrs committed May 20, 2024
1 parent ddbeed2 commit adfaf24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pak/graphql/mutations/stash.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def update_stash(info: Info, input: inputs.UpdateStashInput) -> types.Stash:
return stash


def delete_stash(info: Info, input: inputs.DeleteStashInput) -> types.Stash:
def delete_stash(info: Info, input: inputs.DeleteStashInput) -> strawberry.ID:

user = info.context.request.user

stash = models.Stash.objects.get(id=input.id, owner=user)
stash = models.Stash.objects.get(id=input.stash)
stash.delete()

return stash
Expand Down
2 changes: 1 addition & 1 deletion pak/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CreateStashInput:

@strawberry.input
class DeleteStashInput:
id: str
stash: strawberry.ID

@strawberry.input
class StashItemInput:
Expand Down

0 comments on commit adfaf24

Please sign in to comment.