Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MahirSalahin committed Jul 27, 2024
1 parent ee2d6a1 commit 5b3ff99
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions saleor/graphql/review/mutations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from .review_submit import SubmitProductReview
from .review_delete import DeleteProductReview
from .review_update import UpdateProductReview
from .review_media_create import ReviewMediaCreate
from .review_media_create import CreateReviewMedia

__all__ = [
"SubmitProductReview",
"DeleteProductReview",
"UpdateProductReview",
"ReviewMediaCreate",
"CreateReviewMedia",
]
4 changes: 2 additions & 2 deletions saleor/graphql/review/mutations/review_media_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Meta:
doc_category = DOC_CATEGORY_PRODUCTS


class ReviewMediaCreate(BaseMutation):
class CreateReviewMedia(BaseMutation):
review = graphene.Field(Review)
media = graphene.Field(ReviewMedia)

Expand Down Expand Up @@ -142,4 +142,4 @@ def perform_mutation( # type: ignore[override]
cls.call_event(manager.review_updated, review)
cls.call_event(manager.review_media_created, media)
review = ChannelContext(node=review, channel_slug=None)
return ReviewMediaCreate(review=review, media=media)
return CreateReviewMedia(review=review, media=media)
4 changes: 2 additions & 2 deletions saleor/graphql/review/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
SubmitProductReview,
UpdateProductReview,
DeleteProductReview,
ReviewMediaCreate,
CreateReviewMedia,
)
from ...review import models
from .types import Review
Expand Down Expand Up @@ -36,4 +36,4 @@ class ReviewMutations(graphene.ObjectType):
submitProductReview = SubmitProductReview.Field()
updateProductReview = UpdateProductReview.Field()
deleteProductReview = DeleteProductReview.Field()
createReviewMedia = ReviewMediaCreate.Field()
createReviewMedia = CreateReviewMedia.Field()
2 changes: 1 addition & 1 deletion saleor/graphql/review/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


class Review(ModelObjectType[models.Review]):
id = graphene.ID(required=True, description="ID of the review.")
id = graphene.GlobalID(required=True, description="ID of the review.")
rating = graphene.Int(required=True, description="Rating of the review")
review = graphene.String(required=True, description="Details of the review")
title = graphene.String(required=True, description="Title of the review")
Expand Down

0 comments on commit 5b3ff99

Please sign in to comment.