diff --git a/docs/docs/guides/developer-guide/plugins/index.mdx b/docs/docs/guides/developer-guide/plugins/index.mdx index 4c13ffa346..f7a573bd23 100644 --- a/docs/docs/guides/developer-guide/plugins/index.mdx +++ b/docs/docs/guides/developer-guide/plugins/index.mdx @@ -358,7 +358,7 @@ export class WishlistService { */ async addItem(ctx: RequestContext, variantId: ID): Promise { const customer = await this.getCustomerWithWishlistItems(ctx); - const variant = this.productVariantService.findOne(ctx, variantId); + const variant = await this.productVariantService.findOne(ctx, variantId); if (!variant) { throw new UserInputError(`No ProductVariant with the id ${variantId} could be found`); } @@ -528,7 +528,7 @@ export class WishlistShopResolver { @Query() @Allow(Permission.Owner) - activeCustomerWishlist(@Ctx() ctx: RequestContext) { + async activeCustomerWishlist(@Ctx() ctx: RequestContext) { return this.wishlistService.getWishlistItems(ctx); } @@ -760,6 +760,7 @@ mutation RemoveFromWishlist { removeFromWishlist(itemId: "4") { id productVariant { + id name } }