Skip to content

Commit 2152baa

Browse files
committed
docs: fix RequestContext serialization link and wording
1 parent c4e700b commit 2152baa

File tree

1 file changed

+3
-2
lines changed
  • docs/docs/guides/developer-guide/worker-job-queue

1 file changed

+3
-2
lines changed

docs/docs/guides/developer-guide/worker-job-queue/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ export class ProductVideoPlugin {}
326326

327327
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
328328
service methods that you may be using inside your `process` function. However, the `RequestContext` object itself is not serializable,
329-
so it cannot be passed directly to the `JobQueue.add()` method. Instead, you can serialize the `RequestContext` using the ctx.serialize() method `
330-
method](/reference/typescript-api/request/request-context/#serialize), and then deserialize it in the `process` function using the static `deserialize` method:
329+
so it cannot be passed directly to the `JobQueue.add()` method. Instead, you can serialize the `RequestContext` using the [`ctx.serialize()` method](/reference/typescript-api/request/request-context/#serialize),
330+
and then deserialize it in the `process` function using the static `deserialize` method.
331+
331332

332333
```ts
333334
import { Injectable, OnModuleInit } from '@nestjs/common';

0 commit comments

Comments
 (0)