-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: fix incorrect RequestContext serialization method #3365
base: master
Are you sure you want to change the base?
docs: fix incorrect RequestContext serialization method #3365
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! There's a small part that needs fixing.
@@ -326,7 +326,7 @@ export class ProductVideoPlugin {} | |||
|
|||
Sometimes you need to pass the [RequestContext object](/reference/typescript-api/request/request-context) to the `process` function of a job, since `ctx` is required by many Vendure | |||
service methods that you may be using inside your `process` function. However, the `RequestContext` object itself is not serializable, | |||
so it cannot be passed directly to the `JobQueue.add()` method. Instead, you can serialize the `RequestContext` using the [`RequestContext.serialize()` | |||
so it cannot be passed directly to the `JobQueue.add()` method. Instead, you can serialize the `RequestContext` using the ctx.serialize() method ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part looks incorrect. The link is not correctly formatted and the word "method" is repeated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feedback! I've made the changes. If any further adjustments are needed, please let me know. Thanks again!
|
Description
Update documentation for RequestContext serialization to correctly use
ctx.serialize()
instead ofRequestContext.serialize(ctx)
. This change resolves an issue where the documentation incorrectly referenced a static method that does not exist, leading to confusion.Breaking changes
N/A
Screenshots
N/A
Checklist
📌 Always:
👍 Most of the time: